Skip to content

Instantly share code, notes, and snippets.

@MariaJackson1
Last active August 8, 2022 21:06
Show Gist options
  • Save MariaJackson1/d6da8949e610a576715fb238143e1878 to your computer and use it in GitHub Desktop.
Save MariaJackson1/d6da8949e610a576715fb238143e1878 to your computer and use it in GitHub Desktop.
Transition on Load
@keyframes slideInFromLeft {
0% {
transform: translatey(5%);
opacity: 0;
}
100% {
transform: translatey(0);
opacity: 1;
}
}
.fadeIn{
animation-duration: 2s; /* the duration of the animation */
animation-timing-function: ease-out; /* how the animation will behave */
animation-delay: 0s; /* how long to delay the animation from starting */
animation-iteration-count: 1; /* how many times the animation will play */
animation-name: slideInFromLeft; /* the name of the animation we defined above */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment