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.
Inside, the small drawing shows the card from above: it starts turned away and swings on its hinge to face you. The closer your eye, the deeper the turn looks.
No depth has no 3D space around it, so its turn is a flat squash; With depth swings in real depth. With Loop off, both rest part-way through the turn.
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.
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.
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.