CSS transform image when hover over a container
Is there a way using CSS to make a container like:
#p-container .p-categories-item
affect the images within that div? I have a CSS animation on the images, but I would like it to play when I hover over the entire element, not just actual image itself. Thanks.开发者_开发知识库
Just use #p-container .p-categories-item:hover img { /* stuff */ }
to select the image inside the .p-categories-item
element only when it's being hovered over.
精彩评论