Rombo

Translation

Animate the position of an element

Basic Usage

<div class="motion-translate-y-in-100">
  Slide up
</div>
Slide up

Available Values

These are the theme default values. You can customize the theme to add your own values to the motionTranslate property or use arbitrary values.

ClassValue
motion-translate-00%
motion-translate-2525%
motion-translate-5050%
motion-translate-7575%
motion-translate-100100%
motion-translate-150150%
motion-translate25%
motion-translate-[50%]Arbitrary value

Individual Axis Translation

Translation animations support both X and Y axes:

  • motion-translate-x-[direction]-[value] - Horizontal movement
  • motion-translate-y-[direction]-[value] - Vertical movement
<div class="motion-translate-x-in-100">
  Slide in from right
</div>
<div class="motion-translate-y-in-100">
  Slide up
</div>
Slide in from right
Slide up

Loop Animations

<div class="motion-translate-x-loop-50 motion-translate-y-loop-25">
  Loop horizontally and vertically
</div>
Loop horizontally and vertically

Exit Animations

<div class="motion-translate-y-out-100">
  Slide out downward
</div>
Slide out downward

Combining with Other Animations

<div class="motion-translate-y-in-100 motion-opacity-in-0">
  Slide up and fade in
</div>
Slide up and fade in

Combining with Modifiers

<div class="motion-translate-y-in-100 motion-ease-bounce">
  Bounce in from below
</div>
Bounce in from below

On this page

✨ Rombo for Chrome

Design animations visually in your browser.

Export directly to Rombo for Tailwind, CSS, or Framer Motion.

Install