- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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.
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.
I’m trying to find it in Chrome but not having luck, whereabouts is the file please?
This is the page’s total script :
And these are the relevant pieces of code :
Each letter is wrapped in a span so they’re individually altered.
Thanks – looks very complicated haha!
Yeah, probably more than necessary. Let me see if I can whip something together with less code.
Edit – the basic idea :
It seems they’ve changed the animation concept altogether in the meantime.
Yeah they’ve made it a different animation and colour, the older one was better in my opinion.