Created
December 21, 2022 00:55
-
-
Save Mr2P/705c1c377d6f3ffeebc3b0277d43fb62 to your computer and use it in GitHub Desktop.
The animated title block style
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
/* https://cdn.jsdelivr.net/npm/[email protected]/dist/splitting.min.css */ | |
selector .is-animated-heading { | |
visibility: hidden; | |
} | |
selector .is-animated-heading.is-animated { | |
visibility: visible; | |
} | |
selector .is-animated .char { | |
animation : fadeInUp20 .35s cubic-bezier(0.3, 0, 0.7, 1) both; | |
animation-delay : calc(50ms * var(--char-index)); | |
} | |
@keyframes fadeInUp20 { | |
0% { | |
opacity : 0; | |
transform : translateY(20px); | |
} | |
100% { | |
opacity : 1; | |
transform : translateY(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment