Skip to content

Instantly share code, notes, and snippets.

@asssis
Created January 25, 2021 19:49
Show Gist options
  • Save asssis/c6a9e172ea5d30e8ba415f84d70cd48b to your computer and use it in GitHub Desktop.
Save asssis/c6a9e172ea5d30e8ba415f84d70cd48b to your computer and use it in GitHub Desktop.
animation transição rotate
<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