How to build a zoom scene transition
A shape appears, spins, then grows to cover the screen: the base of a cinematic transition.
Steps
- Start from scale zero with zero opacity.
- Hold the middle a moment so the eye catches it.
- Scale up hard at the end and fade out.
The code
.shape{animation:scene 2.6s cubic-bezier(.7,0,.3,1) forwards}
@keyframes scene{0%{transform:scale(0) rotate(-90deg);opacity:0}30%,70%{transform:scale(1) rotate(0);opacity:1}100%{transform:scale(6);opacity:0}}Want ready-made variations? The library has hundreds, each with standalone code.