Now the scale will be applied using the top of the element as the origin, instead of the center by default.
Like you may have guessed, the possible values for this customization are: `top`, `bottom`, `left`, and `right`.
If you wish, you can also combine two origin values. For example, if you want the origin of the scale to be "top right", you can use: `.origin.top.right` as the modifier.
[Applying CSS classes](#applying-css-classes)
---------------------------------------------
For direct control over exactly what goes into your transitions, you can apply CSS classes at different stages of the transition.
> The following examples use [TailwindCSS](https://tailwindcss.com/docs/transition-property) utility classes.
Toggle
Hello 👋
Directive
Description
`:enter`
Applied during the entire entering phase.
`:enter-start`
Added before element is inserted, removed one frame after element is inserted.
`:enter-end`
Added one frame after element is inserted (at the same time `enter-start` is removed), removed when transition/animation finishes.
`:leave`
Applied during the entire leaving phase.
`:leave-start`
Added immediately when a leaving transition is triggered, removed after one frame.
`:leave-end`
Added one frame after a leaving transition is triggered (at the same time `leave-start` is removed), removed when the transition/animation finishes.
[← x-for](/directives/for)
[x-effect →](/directives/effect)
Code highlighting provided by [Torchlight](https://torchlight.dev)