Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable AnimatePresence animations on initial load?

I have a bunch of elements that are animated using AnimatePresence, but I don't want them animated in during the initial load of my component, only during subsequent interactions with the component. Is there a simple way to disable AnimatePresence animations initially and then re-enable them?

like image 760
w.brian Avatar asked Oct 23 '25 15:10

w.brian


1 Answers

This should do the trick.

<AnimatePresence initial={false}>

https://www.framer.com/api/motion/animate-presence/#suppressing-initial-animations

like image 83
zeckdude Avatar answered Oct 25 '25 18:10

zeckdude



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!