Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change attribute of CSS Pseudo classes (:hover) with jQuery

Is it even possible to change the pseudo classes with jQuery ? Is there any workaround for achieving this?

like image 890
Sabby62 Avatar asked Nov 03 '22 22:11

Sabby62


1 Answers

Try to create a class selector to your CSS, and toggle the class on and off for the element you would like to change style/anything when you hover over it.

Here are other suggestions: Setting CSS pseudo-class rules from JavaScript

Dynamic CSS pseudo class styles with jQuery

like image 145
yvonnezoe Avatar answered Nov 11 '22 03:11

yvonnezoe