So I figured I’d try my hand at a bit of CSS to create a typing effect. I started from this one, but I wanted to expand it to multi-line, so I did. Turns out there’s a lot of manual timing work, so it’s tedious to change. But with a little JS… I made a generator—make some for yourself!

  • trainline
    link
    English
    21 year ago

    Wow, I did not even know CSS would let you animate typing

    • @owenfromcanadaOP
      link
      English
      21 year ago

      I didn’t either, before I looked it up. Apparently CSS lets you do an animation in “steps” instead of continuous movement. Then it’s just applying that to the width of a div, and it creates the effect (along with alternating the transparency of the right border for the cursor).

      • trainline
        link
        English
        21 year ago

        Thanks for the explanation!