This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
Is it possible to replicate Framer Motion 'layout' functionality? #196
Unanswered
MattHeslington
asked this question in
Support
Replies: 1 comment
-
Ah, looking at the feature comparison section of the website it seems layout animations aren't possible with Motion One. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'd love to be able to replace Framer Motion with Motion, but I can't work out how to achieve what I'm doing with FM.
I have a simple drop-down menu consisting of a container div and three children, only one of which is ever displayed at any time. The child div dictates the size of the parent div. Clicking on different links in the nav hides and shows one of the three children. I would like to be able to animate the size/position of the parent div when the selected child changes.
This is my current code:
Is this possible at all? In Framer Motion I would do it by adding
to the parent motion.div where spring is just:
Any help very much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions