animate CSS3 gradient-positions using jQuery

前端 未结 6 492
生来不讨喜
生来不讨喜 2021-01-01 04:58

Is it possible to animate the position of a CSS3-gradient-color using jQuery?

I\'d like to animate from this

background: -moz-linear-gradient(top, #F         


        
6条回答
  •  無奈伤痛
    2021-01-01 05:19

    I think you should try it by using jquery ui's switchClass, you need to add JqueryUI and a link to the dependency effects core http://jqueryui.com/demos/switchClass/

    something like this:

    
    
    
    
    
    Toggle Effect

    This works for me @localhost

    Lauw

提交回复
热议问题