Next.js Discord

Discord Forum

How to add className to motion div

Answered
Sun bear posted this in #help-forum
Open in Discord
Avatar
Sun bearOP
Ever since upgrading to Next 15, I've noticed that className just doesn't exist on motion.div anymore? Anyone know how I can fix this and get back to styling my motion elements with tailwindcss?
Answered by Asian black bear
You need to use the latest alpha of motion.
View full answer

5 Replies

Avatar
Sun bearOP
Image
please mention me/dm me if you reply
Avatar
Asian black bear
You need to use the latest alpha of motion.
Answer
Avatar
Asian black bear
I think it's 12.0.0-alpha.2 at the moment.
Avatar
@Asian black bear I think it's `12.0.0-alpha.2` at the moment.
Avatar
Sun bearOP
thank you!