<script> $(".class").hover( function () { $('.class').css('opacity', '0.5'); }, function () { $('.class').css('opacity', '1'); } ); </script> It is necessary to write only with the help of css.
Is there a solution to this issue without jquery?
.class{ opacity:1; } .class:hover{ opacity: 0.5; } Source: https://ru.stackoverflow.com/questions/568499/
All Articles