Created
May 12, 2023 19:10
-
-
Save slavkapiyavka/5fd71a66595818e1d557ea272950724f to your computer and use it in GitHub Desktop.
gradual fade in animation example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.fade-in-gradual { | |
animation: 255ms ease 0s fadeInGradual both; | |
} | |
@keyframes fadeInGradual { | |
0% { | |
opacity: 0; | |
transform: translateY(-10px); | |
} | |
100% { | |
transform: translateY(0px); | |
opacity: 1; | |
} | |
} | |
@for $i from 1 through 75 { | |
.fade-in-gradual:nth-child(#{$i}) { | |
animation-delay: $i * calc(1s / 15); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment