03.03 · Page Transitions

Morph Transition

The logo changes shape to match each page you visit. Best for brand marks.

Click it

Click Gallery or About at the top of the box, or press Show me.

Try it

Change a setting, then try it again or press Show me.

Speed

How long the logo takes to change shape.

Feel

Springy stretches a little past the new shape.

Copy the prompt

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

Add a morphing logo to [your logo or icon, and the pages it belongs to]. Give each page its own shape for the logo, and when the visitor changes page, let the outline flow from the old shape into the new one while the page content fades across. Draw every shape with the same number of points in the same order, so each point has a partner to move to and the outline never tears or twists. Move the points yourself on every frame, because CSS cannot blend two different shapes. If the visitor has reduced motion turned on, switch to the new shape at once. 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

  • Logos
  • Brand marks
  • Icons that change state

Avoid on

  • Detailed pictures
  • Text