main
scss 55 lines 759 Bytes
Raw
1 .item-appear {
2 animation: item-fade 0.3s forwards;
3 opacity: 0;
4
5 &.item-appear__bottom {
6 animation: item-fade-bottom 0.3s forwards;
7 }
8 &.item-appear__up {
9 animation: item-fade-up 0.3s forwards;
10 }
11
12 &.item-appear__delayed-005 {
13 @for $i from 0 through 40 {
14 &:nth-child(#{$i}) {
15 animation-delay: $i * 0.05s;
16 }
17 }
18 }
19 &.item-appear__delayed-010 {
20 @for $i from 0 through 40 {
21 &:nth-child(#{$i}) {
22 animation-delay: $i * 0.1s;
23 }
24 }
25 }
26 }
27
28 @keyframes item-fade {
29 from {
30 opacity: 0;
31 }
32 to {
33 opacity: 1;
34 }
35 }
36
37 @keyframes item-fade-bottom {
38 from {
39 opacity: 0;
40 transform: translateY(10px);
41 }
42 to {
43 opacity: 1;
44 }
45 }
46
47 @keyframes item-fade-up {
48 from {
49 opacity: 0;
50 transform: translateY(-10px);
51 }
52 to {
53 opacity: 1;
54 }
55 }