Smooth out this jQuery toggle animation?

后端 未结 5 1483
甜味超标
甜味超标 2020-12-31 19:38

The animation produced by my jQuery function is shaky, and I\'ve been looking through different SO solutions, such as adding jquery.easing, but no luck. Is

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 20:00

    What browser are you primarily gunning for? If it's any of the webkit browsers or FireFox then you could take advantage of the hardware accelerated CSS3 transitions with a jquery fallback.

    http://msdn.microsoft.com/en-us/scriptjunkie/hh304380

    I don't think jQuery easing currently uses CSS3 transitions as a first option but correct me if I am wrong.

    Take a look at: http://css3.bradshawenterprises.com/all/

    It wouldn't be too much effort at all to hack something up using CSS3.

提交回复
热议问题