02.11 · Entrance & Exit

Flip In

Swings into view in 3D, like a card turning over. Best for cards and tiles.

Watch it

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

⬡
3D Flip
The depth comes from the space around the card. Without it, the turn looks like a flat squash.

Try it

Change a setting and the animation plays again.

Swing direction

Sideways turns like a door, up and down like a flap.

Hinge

An edge hinge makes it swing from that side.

Speed

Slow is easy to follow. Fast feels snappy.

More optionsFewer options

How far it turns

¼ turn starts edge-on; ½ turn starts facing away.

3D depth

Strong looks closer and more dramatic.

Feel

Springy swings a little past, then settles.

Softens the first moment.

Copy the prompt

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

Add a 3D flip-in entrance to [the card you want to animate]. The card should start turned away from the viewer and swing toward them until it faces them flat. Give the card's container a 3D perspective so the swing has real depth; without it, the flip looks like a flat squash. The hinge can sit in the middle or along one edge, and the card can fade in while it turns. If the visitor has reduced motion turned on, show the card facing forward without the flip. 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

  • Cards
  • Flashcards and tiles
  • Dashboard panels
  • Onboarding steps

Avoid on

  • Text blocks
  • Full-page sections