Created
January 25, 2021 19:49
-
-
Save asssis/c6a9e172ea5d30e8ba415f84d70cd48b to your computer and use it in GitHub Desktop.
animation transição rotate
This file contains hidden or 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
<style lang="scss"> | |
.rotate-in { | |
opacity: 0; | |
animation: rotate 500ms linear; | |
animation-fill-mode: forwards; | |
@for $i from 1 through 12 { | |
&:nth-child(#{$i}) { | |
animation-delay: $i * 50ms; | |
} | |
} | |
} | |
@keyframes rotate { | |
0% { | |
display: none; | |
transform: rotateY(470deg); | |
} | |
100% { | |
transform: rotateY(0deg); | |
opacity: 1; | |
} | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment