简体   繁体   English

CSS3过渡轮换问题

[英]CSS3 Transition rotate issue

I am new to css3 transitions so the fix is probably easy for you. 我是CS3过渡的新手,因此对您来说修复很容易。 I am busy with a new website where i want to rotate some images. 我正在忙于一个新的网站,我想在其中旋转一些图像。 In a new html document it works, but when i try to implement it to my website it does nothing. 在一个新的html文档中,它可以工作,但是当我尝试将其实现到我的网站时,它什么也没做。 www.jsfiddle.net/NXRvB/ www.jsfiddle.net/NXRvB/

You have a negative z-index on #circelwrap which will prevent your :hover because you are moving the element behind its container. #circelwrap z-index为负,这会阻止:hover因为您正在将元素移动到其容器的后面。

#circelwrap {

    z-index: -1;
}

remove this and it works. 删除它,它的工作原理。

DEMO 演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM