Created
June 9, 2024 21:08
-
-
Save hkkcngz/19b52ed8ecce27756bcf4aa0618f19d1 to your computer and use it in GitHub Desktop.
appear animation 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
@keyframes appear { | |
from { | |
opacity: 0; | |
scale: 0.5; | |
} | |
to { | |
opacity: 1; | |
scale: 1; | |
} | |
} | |
@keyframes appear2{ | |
from { | |
opacity: 0; | |
transform: translateX(-100px); | |
} | |
to { | |
opacity: 1; | |
transform: translateX(0px); | |
} | |
} | |
@keyframes appear3{ | |
from { | |
opacity: 0; | |
clip-path: inset(100% 100% 0 0); | |
} | |
to { | |
opacity: 1; | |
clip-path: inset(0 0 0 0); | |
} | |
} | |
.anim { | |
animation: appear 5s linear; | |
animation-timeline: view(); | |
animation-range: entry 0% cover 40% | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment