Animating the modal opening with path transitions #1835
Replies: 3 comments
-
Ohhhh, @wbobeirne this is very nice! I think we could include this in the default styles probably. |
Beta Was this translation helpful? Give feedback.
-
The https://driverjs.com library does something like this, and it's very slick. The above css is a good start, but doesn't work well on the first/last step, and for some transitions where the element is near the screen edges. |
Beta Was this translation helpful? Give feedback.
-
@chuckcarpenter can we look at including the above CSS and perhaps some additional tweaks per what @lonix1 said? Maybe if we know the first and last steps we can just not do the transitions there. |
Beta Was this translation helpful? Give feedback.
-
So I was running into some issues around transitioning from step to step cleanly while using
beforeShowPromise
, and I actually found that you can apply transitions to the modal'spath
element to have it animate between targets:results in
2022-03-02_12-58-45.mp4
Perhaps this should either be an option, added to the CSS by default, or maybe a cookbook entry? Either way, I thought it was cool and wanted to share.
Beta Was this translation helpful? Give feedback.
All reactions