Created
March 29, 2022 00:17
-
-
Save irvingvjuarez/092392e04e552b8b2ace3837035277ea to your computer and use it in GitHub Desktop.
Skeleton with pure css
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
.skeleton { | |
background: linear-gradient(90deg, rgba(250,250,250,1), rgba(200, 199, 199)); | |
background-size: 400% 400%; | |
animation: loadingAnimation 3s ease-in-out infinite; | |
} | |
@keyframes loadingAnimation { | |
0%{ | |
background-position: 0% 50%; | |
} | |
50%{ | |
background-position: 100% 50%; | |
} | |
100%{ | |
background-position: 0% 50%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment