开发者

CSS transform image when hover over a container

开发者 https://www.devze.com 2023-03-17 16:20 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消