Milo

Animate text and numbers

  • Motion
  • 2 min 21 s

Bring a headline in word by word, and count a number up. Text entrance with its Reveal and Stagger settings, and Count up with Start from and Duration, checked in Preview and played again with Replay, on the Eight & Oar template.

Steps

  1. Open the Eight & Oar template if you’d like to follow along.
  2. The lightning bolt beside it opens Behaviors. This one already fades in when it comes into view.
  3. Only offered for text: the words come in one after another instead of all at once.
  4. Reveal splits the text by line, word or character. Stagger is the gap between each one.
  5. Reads the number already written there and counts up to it, from Start from, over the Duration.
  6. Animations don’t play in the editor. Preview shows the page the way a visitor sees it.
  7. Starts the page over so every animation plays again, without reloading.
Read the full transcript

Words and numbers can make an entrance too. A headline that arrives one word at a time reads almost like someone saying it out loud, and a number that counts up as you reach it really lands. In this video I'll set up both, on Eight & Oar, a template for a rowing club in Philadelphia. Just like any animation in Milo, these don't play here in the editor. You see them in Preview, and we'll go there at the end.

I'll start with the headline. The lightning bolt beside it opens Behaviors, and this one already has a behavior from the template. It's In view, so it plays when the headline becomes visible on the visitor's screen, and right now it simply fades in. Because this is text, the effect list has two extra choices that only work on words and numbers. The first is Text entrance, which brings the words in one after another instead of all at once. Reveal decides how the text is split up. By line brings in one line at a time, which suits a longer paragraph. By word goes word by word. By character goes letter by letter, which is fun on a short word but slow on a whole sentence. I'll go By word. Stagger is the gap between each word, in milliseconds, so a little more makes it feel more deliberate. Below that are the same settings every In view effect has, Replay, Threshold, Easing and Duration, and the previous video walks through each one.

Now this number. It's the days since a crew last needed the safety boat, and it deserves a moment. Count up is the other text-only effect. It reads the number that's already written here, and you can see it found 1,412, so if the club changes it next week, the animation follows along. Start from is where the count begins, zero unless you change it. And I'll make the Duration two seconds, so the climb is easy to follow.

Let's see both. I'll click Preview to look at the page the way a visitor would. I'll scroll down to the safety section and watch the headline. There it comes, a word at a time. And just below it, the number climbs all the way up to 1,412.

Replay starts the page over, so every animation plays again from the beginning. It's handy for checking a change, like a different stagger, without reloading. That's Text entrance and Count up. Use them on the words and numbers you most want people to notice, like a main headline or a big result.

Build something that moves people.

Tell Milo what it’s for and see your site take shape in minutes.

Free to start. No card needed.