Can you use multiple :hover selectors? What I want to achieve is a rainbow background for a button when I hover over it and for it to loop with a transition. Is there anything I could use to achieve something like that? I know how to transition but not to loop or/and achieve the rainbow effect. Does there exist something like hover1, 2 etc.? I would appreciate any help.
Asked
Active
Viewed 35 times
1 Answers
-1
It's not possible to have multiple :hover
. BUT, there are other approaches to do the same as you want.
Check this answer as an example for this.
About those pseudo-elements, this is a good answer to check

Alexander Santos
- 1,458
- 11
- 22
-
2
-
Agreed! I followed this approach because while his answer isn't possible (And this would be a duplicate), there is a different way to solve his problem. Just tried to help xD – Alexander Santos Oct 01 '21 at 16:12
-
-