0

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.

CoolBoiBS
  • 23
  • 5

1 Answers1

-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