A movie title starts huge, faint and out of focus, then settles to its final size as it sharpens. One keyframe animates scale, blur and opacity together on a long ease-out curve.
Also known as: cinematic text animation css, title zoom blur in, film title intro.
<div class="txt-movie-title-zoom-out">ORIGIN</div>
.txt-movie-title-zoom-out {
--c: var(--txt-color, #3b82f6);
font-size: calc(var(--txt-size, 32px) * 1.25);
font-family: system-ui, sans-serif;
font-weight: 300;
line-height: 1.2;
display: inline-block;
padding-left: 0.3em; /* balances the trailing letter-spacing */
color: var(--c);
letter-spacing: 0.3em;
animation: txt-movie-title-zoom-out-land 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;}
@keyframes txt-movie-title-zoom-out-land {
0% { opacity: 0; transform: scale(2.1); filter: blur(0.2em); animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); }
12% { opacity: 0.35; transform: scale(1.7); filter: blur(0.12em); }
100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
.txt-movie-title-zoom-out, .txt-movie-title-zoom-out *, .txt-movie-title-zoom-out::before, .txt-movie-title-zoom-out::after, .txt-movie-title-zoom-out *::before, .txt-movie-title-zoom-out *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}--txt-color on the element or a parent.
Currently previewing #3b82f6.--txt-size. Every other dimension is in
em, so the whole thing scales together. Currently previewing 40px.transition or animation
shorthand. Staggered delays are relative, so they keep their rhythm.