02.02 · Entrance & Exit
Slide In
Travels into place from one edge. Best for side panels and notifications.
Watch it
It plays by itself. Turn on slow motion to see each part of the movement.
Inside, the dashed outline is where the card starts, the line is its route, and the dots mark equal moments, so their spacing shows its pace.
Slide alone stays solid and looks mechanical; Slide and fade fades in on the way, so it reads as an arrival. With Loop off, both rest a fifth of a second in.
Try it
Change a setting and the animation plays again.
Comes in from
The edge it travels in from.
How far it travels
Short feels subtle; far feels dramatic.
Speed
Slow is easy to follow. Fast feels snappy.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add a slide-in entrance to [the element you want to animate]. It should start away from its final position, on the side and at the distance given in the settings, and travel into place so it feels like it came from somewhere; slowing down as it arrives makes the landing feel natural. Unless the settings turn it off, fade it in during the slide too, because a slide on its own tends to look mechanical. Give longer distances a little more time so the speed still feels natural. Move it without changing the layout, so nothing around it shifts. If the visitor has reduced motion turned on, skip the travel and simply show it. Match the settings listed below.
Your settings
Replace the words in brackets with your own element. Your settings are added at the end.
Free and open source. If this helped, a star on GitHub helps other people find it.
Star on GitHubWhat it is
The full explanation is in README.md.