# vim: sw=3 ts=3 ft=org

#+TITLE: Animate Action Element
#+STYLE: <LINK href='../stylesheet.css' rel='stylesheet' type='text/css' />
#+AUTHOR: Rusty Klophaus (@rustyio)
#+OPTIONS:   H:2 num:1 toc:1 \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+EMAIL: 
#+TEXT: [[file:../index.org][Getting Started]] | [[file:../api.org][API]] | [[file:../elements.org][Elements]] | [[file:../actions.org][*Actions*]] | [[file:../validators.org][Validators]] | [[file:../handlers.org][Handlers]] | [[file:../config.org][Configuration Options]] | [[file:../about.org][About]]

* Animate Action - #animate {}

  Call JQuery UI's [[http://docs.jquery.com/Effects/animate][animate(options, speed, easing)]] on the target element.

** Usage

#+BEGIN_SRC erlang
   wf:wire(myDiv, #animate { options=[{width, 200}, {fontSize, "3em"}], speed=200 })
#+END_SRC

** Attributes

   + options - (/key/value pairs/) :: CSS options to set during the animation.

   + speed - (/integer/) :: Speed of the effect, in milliseconds.

   + easing - (/atom/) :: Name of a JQuery easing.

** See Also

   + [[./base.html][base element]]

   + [[./effect.html][effect element]]

   + [[./toggle.html][toggle element]]

 
