Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to do this text animation?

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #239214
    jimleeder123
    Participant

    I’ve found a cool animation on a link on this webpage – http://www.webdesignerdepot.com/2015/07/the-quick-guide-to-speeding-up-your-websites/ – hover over the links and you’ll see.

    It changes the colour of links letter by letter. Is it possible to do this just with CSS or is it JavaScript? Also how?

    Note: I mean the links in the article. Not the menu.

    Thanks.

    #239219
    Shikkediel
    Participant

    It’s done with JS in any case… I tried to post the script but that got rejected. In Firefox dev tools, you can see the mouse events that are triggering part of the script in main.js by clicking the icon placed after the a links.

    #239221
    jimleeder123
    Participant

    I’m trying to find it in Chrome but not having luck, whereabouts is the file please?

    #239222
    Shikkediel
    Participant

    This is the page’s total script :

    Link

    And these are the relevant pieces of code :

    http://pastebin.com/JUMtwzgc

    Each letter is wrapped in a span so they’re individually altered.

    #239225
    jimleeder123
    Participant

    Thanks – looks very complicated haha!

    #239233
    Shikkediel
    Participant

    Yeah, probably more than necessary. Let me see if I can whip something together with less code.

    Edit – the basic idea :

    Demo

    #239235
    Shikkediel
    Participant

    It seems they’ve changed the animation concept altogether in the meantime.

    #239260
    jimleeder123
    Participant

    Yeah they’ve made it a different animation and colour, the older one was better in my opinion.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.