Animate translate3d with jQuery

后端 未结 2 1977
别跟我提以往
别跟我提以往 2021-01-05 11:06

I\'m trying to animate translate3d with Jquery 2.1.1. in 10 seconds. Then, when the animation is complete, I want it to alert me. But the problem is that it does not animate

2条回答
  •  有刺的猬
    2021-01-05 11:44

    You can use jquery.transit jQuery plugin for css3 transition:

    $('.box').transition({ rotate: '45deg' });
    $('.box').transition({ scale: 2.2 });
    $('.box').transition({ skewY: '30deg' });
    $('.box').transition({
      perspective: '100px',
      rotate3d: '1,1,0,180deg'
    });
    

    very good plugin and many features

    Delay, Optional units, Vendor prefixes, Chaining & queuing, Alternate easing/duration syntax, Relative values, Transformation origins and Easing

    Demo Here

提交回复
热议问题