is this not possible or do I have a syntax error?
I've tried it multiple ways, but nothing worked.
I have some divs using the classes works1
, works2
, etc..
and I want to define a general hover effect, but the result is, that exactly nothing happens when I try to make it "general"
This is my approach, any hints?
div[class^="works"]:hover {
cursor: pointer;
-webkit-filter: grayscale(0);
filter: grayscale(0);
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}
The classes are used like this:
<div class="item col-lg-2 col-md-3 col-sm-4 col-xs-12 java works1"></div>
.
.
.