Course lesson
Control enter and leave transitions with the `x-show.transition` modifier in Alpine JS
In this lesson, we smoothen the transitions between tabs by applying a transition modifier to our x-show directive.
- Duration
- 1 min
- Access
- Free
- Transcript
- Needs source
In this lesson, we smoothen the transitions between tabs by applying a transition modifier to our x-show directive.
We see how we can ignore the leaving elements, and focus the animation on the entering elements. We tweak the transition duration and origin by chaining additional modifiers to our x-show directive.