![](/img/trans.png)
[英]Any way to prevent contents from mirroring when using rotateY() css flip transition?
[英]Is there any way to customize the css transition?
据我了解,如果我尝试修改具有 transition 属性的元素的样式,则修改将以渐进方式执行。 那么有没有什么办法可以监听样式的变化,防止立即修改,换成自定义动画呢?
即 transion 如果您想使用 css transition 更改颜色,请单击更多详细信息
.box { width: 150px; height: 150px; background: red; margin-top: 20px; margin-left: auto; margin-right: auto; -webkit-transition: background-color 2s ease-out; -moz-transition: background-color 2s ease-out; -o-transition: background-color 2s ease-out; transition: background-color 2s ease-out; } .box:hover { background-color: green; cursor: pointer; }
<div class="box"></div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.