Skip to content

Instantly share code, notes, and snippets.

@Mr2P
Created December 21, 2022 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mr2P/705c1c377d6f3ffeebc3b0277d43fb62 to your computer and use it in GitHub Desktop.
Save Mr2P/705c1c377d6f3ffeebc3b0277d43fb62 to your computer and use it in GitHub Desktop.
The animated title block style
/* https://cdn.jsdelivr.net/npm/splitting@1.0.6/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