05.10 · Text & Typography

Enter/Exit Typography

Each phrase comes in, stays long enough to read, then leaves. Best for slogans.

Watch it

It plays by itself. Turn on slow motion to see each part of the movement.

Try it

Change a setting and the animation plays again.

Entrance speed

How quickly each phrase arrives.

Time on each phrase

How long each phrase holds still to be read.

Exit speed

Exits usually run a little faster than entrances.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add an enter-and-exit text sequence to [the short phrases you want to show]. Show one phrase at a time in the same place: each phrase comes in, holds still long enough to be read, then leaves before the next one arrives. Give each phrase its own way in and out, such as sliding, growing, blurring or wiping, and let each exit lead into the next entrance so the sequence feels connected. Leave the last phrase on screen when the sequence ends. Screen readers should hear each phrase as it appears. If the visitor has reduced motion turned on, swap the phrases without movement. 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

  • Intros
  • Brand statements
  • Hero messages
  • Screens and signage

Avoid on

  • Long sentences
  • Key information