You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried writing a couple of different Vue components for a toggle switch, and when I couldn't get the switch animating between true and false state, I ventured out to Codepen to see where I might be going wrong.
Here is an example of an animated toggle switch on Codepen, similar to what I'm attempting to achieve with my Vue component.
When I bring this sample code into a VitePress project as a Vue component, although it toggles and functions correctly, it still fails to animate the toggle sliding between true and false.
I'm hoping to understand why this might be the case.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've tried writing a couple of different Vue components for a toggle switch, and when I couldn't get the switch animating between true and false state, I ventured out to Codepen to see where I might be going wrong.
Here is an example of an animated toggle switch on Codepen, similar to what I'm attempting to achieve with my Vue component.
https://codepen.io/AllThingsSmitty/pen/MmxxOz/
When I bring this sample code into a VitePress project as a Vue component, although it toggles and functions correctly, it still fails to animate the toggle sliding between true and false.
I'm hoping to understand why this might be the case.
Beta Was this translation helpful? Give feedback.
All reactions