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