让网页图标产生摆动效果:jQuery ClassyWiggle

jopen 11年前
jQuery ClassyWiggle让网页图标产生摆动效果,当你按住他们。类似于你按住iPhone上的应用图标时产生的效果。

Options

  • degrees - an Array object which outlines the cycle of rotation for a wiggle increment.
  • delay - allows you to specify, in milliseconds, the delay between switching from one rotation degree to the next (see degrees). A higher number creates a slower “wiggle.”
  • limit - allows you to specify the maximum number of wiggles.
  • randomStart - a boolean value which tells the plugin to start wiggling all matched elements at the same degree or a random one.
  • onWiggle - an event that is fired off with the end of each wiggle.
  • onWiggleStart - an event that is fired off when the wiggling effect first starts.
  • onWiggleStop - an event that is fired off when the wiggling effect is stopped.
  • start() - starts the wiggle effect.
  • stop() - stops the wiggle effect.
  • isWiggling() - a method that can be used to determine if the matched element is currently “wiggling.”

项目主页:http://www.open-open.com/lib/view/home/1375586916281