是否有可能针对父子事务处理事件具有不同的事务处理速度?子和父元素的不同css3事务处理速度
i.g.父母会在4秒内过渡,而孩子会在1秒内对同一事件做出反应。儿童和父母的相同属性已更改。
示例here。
HTML
<div class="d1">
Parent div<br/>
Parent div
<div class="d2">
HOVER ME
</div>
</div>
CSS
.d1 {
background-color: #F32423;
transition: all 4s linear;
height: 200px;
width: 200px;
}
.d1:hover {
opacity: 0.2;
margin-left:40px;
}
.d2 {
background-color: #FFFF2F;
transition-duration: 1s;
height: 100px;
}
如果将鼠标悬停孩子的div,你可以看到transition-duration: 1s;
针对子元素忽略。我想要的是让子元素转换速度提高4倍。
似乎并没有为我提供的小提琴工作。 – lolotron