programmatically changing webkit-transformation values in animation rules

前端 未结 7 1382
渐次进展
渐次进展 2020-11-28 04:52

I have this stylesheet:

        @-webkit-keyframes run {
            0% {
                -webkit-transform: translate3d(0px, 0px, 0px);
            }                


        
7条回答
  •  误落风尘
    2020-11-28 05:32

    Try something like this:

    var height = {whatever height setting you want to detect};
    element.style.webkitTransform = "translate3d(0px," + height*i + ",0px)";
    

提交回复
热议问题