Remove movement when hovering over images
Removes shakey movement when animating opacity on images with responsive widths.
img {
opacity: 1;
-webkit-transform: rotate(0);
-moz-transform: rotate(0);
transform: rotate(0);
-webkit-backface-visibility: hidden;
position: relative;
}
img:hover {
opacity: 0.5;
}
Written by Devon Mather
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Responsive
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#