How do I animate a scale css property using jquery?

前端 未结 5 704
难免孤独
难免孤独 2020-12-20 10:47

I am trying to have a circle div with the class of \"bubble\" to pop when a button is clicked using jQuery. I want to get it to appear from nothing and grow to its full size

5条回答
  •  渐次进展
    2020-12-20 11:26

    You can use Velocity.js. http://velocityjs.org/ For example:

    $("div").velocity({
      "opacity" : 0,
      "scale" : 0.0001
    },1800)
    

提交回复
热议问题