GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

05Re-trigger via key prop

Changing the key prop makes React unmount the component entirely and mount a brand-new instance, so an entrance animation that only plays once on mount can be replayed on demand.

Best forReplaying a shake-to-confirm error, re-firing a celebration pop every time a score changes

key propremount@keyframes
Re-trigger via key prop
Open in a new tab

05 Re-trigger via key prop — Measured area 4.161% · moving frames 10/23Original by GODRICH · SCSS and React ship in the zip · 9 CSS Animations in React Without Framer Motion

The post this demo lives in

9 CSS Animations in React Without Framer Motion - preview of all 9 demos9 CSS Animations in React Without Framer MotionA card fading in, a modal closing, a list item sliding away — usually that's CSS timed to when React mounts, unmounts, o See all demos in this post

If you like this effect - similar demos