Morphing text

A large headline whose italic word changes every few seconds: its letters blur away one by one while the next word's letters rise into place and its room widens or narrows to fit. The owner writes the sentence around it and adds, removes and reorders the words.

  • 3 editable fields
  • Light and dark
  • Phone to desktop
  • Animated, calmer for reduced motion
  • Set in Funnel Display
  • A small script, no libraries, works without it
Full page

Copy the code with a free developer account

Every component here is free for developers on WireSwan. Create an account, or sign in, and the HTML and CSS are one click away.

How to use it

Paste it in

The line for the head of the page first (the fonts it is set in), then the HTML where the section goes, the CSS in your stylesheet and the script at the end of the page. Everything is under one class, so it cannot restyle the rest of the site.

Make it yours

The colours are the variables at the top of the CSS, with a dark set beside them; the fonts come from Google Fonts by the head line, one font-family line each to swap for your site's own. Using a component twice on one page? Give the second one its own data-edit names.

Upload the site

Every field listed above is in the owner's editor from the first upload, with no setup on your side.

More components

See them all