How to convert css3 transition easing to jquery easing function?

匿名 (未验证) 提交于 2019-12-03 08:46:08

问题:

I making a slider for both modern browsers and old browsers too. I use translate3d and transition to make animation in modern browsers which support css3. I use 2d top, left and easing functions for old browser. I use css3 easing from here:

http://matthewlein.com/ceaser/

I want to convert it to javascript function for using on old browser. I know there are many easing function out there, but I just want to know how to convert. Is it possible?

回答1:

You can use the jQuery Bez plugin for Cubic Bezier Easings in jQuery:

Demo: http://jsfiddle.net/SO_AMK/sbZ7a/

jQuery:

Plugin: https://github.com/rdallasgray/bez



回答2:

I know the answer was already accepted, but i would like to share another great jQuery plugin suited for easing animations.

http://ricostacruz.com/jquery.transit/



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!