Skip to main content

Animation CSS properties

Fancy Animations' entrance and hover effects reach their result with a handful of different CSS properties. Knowing which one each animation uses explains both why some combinations clash (see Combining animations) and whether an animation is safe to use on a given element — transform and clip-path can conflict with a layout the element already depends on (a transform you've set elsewhere, a clip-path mask, a 3D preserve-3d ancestor), and the pseudo-element–based ones need an element that can host ::before/::after (not a bare <img> — see Image restrictions).

Animations that use transform​

AnimationWhat it does
ZoomScales the element in or out
SlideSlides the element in from a direction
RotateRotates the element around a point
BounceDrops the element in with a springy overshoot

Animations that use position: relative​

AnimationWhat it does
Slide relativeLike Slide, but the distance is a percentage of the viewport, not of the element — built to pair with another transform animation without the two fighting over the same property

Animations that use clip-path​

AnimationWhat it does
CircleReveals the element through a growing circular mask
SweepReveals the element with a sweeping wipe
FanReveals the element with a fan-shaped wipe

Animations that use box-shadow​

AnimationWhat it does
RingA ring that expands and fades outward from the element

Animations that use ::before / ::after​

AnimationWhat it does
BorderA line that travels around the element's own edge, in a continuous loop

These are the only entrance/hover classes with this restriction — everything else in the tables above is safe on any element, including images.