add css3 slide-animation
This commit is contained in:
parent
1c84b78851
commit
566ba9cda4
1 changed files with 19 additions and 1 deletions
20
index.html
20
index.html
|
|
@ -6,10 +6,28 @@
|
|||
<link rel="stylesheet" href="normalize.css">
|
||||
<link rel="stylesheet" href="skeleton.css">
|
||||
<link rel="stylesheet" href="custom.css">
|
||||
<style type="text/css">
|
||||
.main-body {
|
||||
animation: slide-in 2s;
|
||||
transform: translateY(0%);
|
||||
}
|
||||
|
||||
@keyframes slide-in {
|
||||
0% {
|
||||
transform: translateY(100vh);
|
||||
}
|
||||
}
|
||||
|
||||
@-ms-keyframes slide-in {
|
||||
0% {
|
||||
transform: translateY(100%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body class="main-body">
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue