Use Transform utilities and variables
masterTransform utilities and variables allow you to define the starting (.xyz-in) or ending (.xyz-out) CSS transform of an animating element. For example, using xyz="up" applies a translateY() to an element, moving it from above its normal position when animating in and to that same position when animating out.
You can override any provided transform variables with custom values in your CSS or via inline styling for granular control. This is particularly useful if an element already has a transform applied (e.g., transform: translateX(-50%)) that you want to maintain during an AnimXYZ animation; in such cases, pass the existing value to the relevant CSS variable (e.g., --xyz-translate-x: -50%).