我正在使用一堆元素来组成一个背景图像,它们都是绝对定位的,自由旋转.
问题是,我想仅转换那些对象的旋转,而不是顶部或左侧的属性.显然过渡:30年代转变;不允许.我有一个聪明的想法
transition:all 30s ease-out; transition: left 0s; transition: top 0s;
但这也不行.我该如何解决?
解决方法
变换是供应商前缀
代替
transition:all 30s ease-out; transition: left 0s; transition: top 0s;
做
-webkit-transition: -webkit-transform $amount-of-time ease-out; -moz-transition: -moz-transform $amount-of-time ease-out; -o-transition: -o-transform $amount-of-time ease-out; -ms-transition: -ms-transform $amount-of-time ease-out; transition: transform $amount-of-time ease-out;