tisho / Switch.framerfx

Utility component for Framer X that lets you switch between different states of an element
31 stars 4 forks source link

With AutoAnimate, visibility of an instance is not updated #4

Closed davidhoeller closed 4 years ago

davidhoeller commented 4 years ago

Visibility of child instances is not "auto animated". If I should provide an example, just let me know.

tisho commented 4 years ago

Good catch. Would you expect visibility to update through an opacity transition?

davidhoeller commented 4 years ago

Just reading it's fixed – thanks @tisho! (Answering to your question: yes, but a "hard" visibility switch would also be ok of course. :-))

tisho commented 4 years ago

As I was implementing the fix I realized that it would be better to treat layers that were hidden from the layer panel as exiting elements, so for now it just picks up the exit transition (a fade out by default). It won’t try to animate position or anything like that. Hopefully this does the job.