DEV Community

Discussion on: My React.js Library Bookmarks

Collapse
stlnick profile image
Nick

Ya know I’m not sure if I actually used them on the same project...

My recommendation though would just be wrap whatever element you want to animate in a motion.div. Just make sure there’s no additional margin or padding on it - that will mess up your layout quick.

Thread Thread
nefejames profile image
nefejames

That makes sense. I'll try that. Thank you

Thread Thread
stlnick profile image
Nick

Absolutely, man. Lemme know if it works or not and I can try to mess around with it more to try and figure it out.

Thread Thread
nefejames profile image
nefejames

Will do. Thank you