IT WORKS
This commit is contained in:
parent
707dbd1787
commit
a2853cad2b
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Created by .ignore support plugin (hsz.mobi)
|
||||||
|
### Sass template
|
||||||
|
.sass-cache/
|
||||||
|
*.css.map
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="style.css">
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="slide">
|
<div class="slide">
|
||||||
<h1>Loading</h1>
|
<h1>0</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="slide">
|
<div class="slide">
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
$foreground: #FFFFFF;
|
$foreground: #FFFFFF;
|
||||||
$background: #000000;
|
$background: #000000;
|
||||||
$animation-delay: 2s;
|
|
||||||
$animation-length: 10s;
|
$animation-length: 3s;
|
||||||
|
$animation-delay: $animation-length - 0.3;
|
||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@ -20,25 +22,14 @@ body {
|
|||||||
.container {
|
.container {
|
||||||
height:100vh;
|
height:100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
:nth-child(1) {
|
|
||||||
animation-delay: 0s;
|
@for $child from 0 to 3 {
|
||||||
animation-duration: 1s;
|
>:nth-child(#{$child+1}) {
|
||||||
animation-name: slide-in;
|
animation-delay: $animation-delay*$child;
|
||||||
animation-fill-mode: both;
|
animation-duration: $animation-length;
|
||||||
}
|
animation-name: slide-in;
|
||||||
:nth-child(2) {
|
animation-fill-mode: both;
|
||||||
animation-delay: 1s;
|
}
|
||||||
animation-duration: 1s;
|
|
||||||
animation-name: slide-in;
|
|
||||||
animation-fill-mode: both;
|
|
||||||
display:none;
|
|
||||||
}
|
|
||||||
:nth-child(3) {
|
|
||||||
animation-delay: 2s;
|
|
||||||
animation-duration: 1s;
|
|
||||||
animation-name: slide-in;
|
|
||||||
animation-fill-mode: both;
|
|
||||||
display:none;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,23 +42,18 @@ body {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes slide-in {
|
||||||
|
|
||||||
.scale-in-center {
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes side-in {
|
|
||||||
0% {
|
0% {
|
||||||
transform: translate(0, -50vh);
|
transform: translateY(-50px);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
10%, 90% {
|
||||||
50% {
|
transform: translateY(0);
|
||||||
transform: translate(0, 0);
|
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
transform: translate(0, 10vh);
|
transform: translateY(-50px);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user