- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Design’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Usually they get animated when hovering over or clicking them but I want a button that stays animated all the time to draw the attention. For example a gradient runs through it every couple of seconds or it changes its colour slightly.
I guess it can only be done using CSS + JS, not CSS alone?
fiy. It’s a PHP/HTML website
Here’s an example:
Is it possible to style a permanently animated button/link using CSS only?
Yes.
I guess it can only be done using CSS + JS, not CSS alone?
Maybe in the past we had to rely on JS for animations because of shoddy browser support, but not now. Modern browsers are all capable of supporting “CSS3 animations and keyframes”. Try Googling that phrase to being your research.
If you hit a problem, feel free to post back with your own code in a basic demo, with a clear description of the problem, what is/isn’t happening, and what you expect/want to happen instead. From there we can offer suggestions for fixes. Note that we only need just enough HTML/CSS/JS to demo the problem – we don’t need your whole codebase.
Good luck with your research.