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.

→
Slide Arrival
Directional motion reads as arrival. Combined with a fade it feels natural; slide alone feels mechanical.

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.

More optionsFewer options

Feel

Springy goes a little past its spot, then settles.

A slide on its own can look mechanical.

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.

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 GitHub

What it is

The full explanation is in README.md.

Good for

  • Side panels
  • Notifications
  • Menus
  • List items

Avoid on

  • Crowded layouts
  • Long text