Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
AnimateImage is an MooTools plugin to create an animated image
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Docs
Source
README.md
package.yml
screenshot.png

README.md

AnimateImage

This is a Class that creates an animated image.

Screenshot

Requirements

How to use

Syntax

#JS
var myAnimation = new Animate(url [,options]);

Arguments

  1. url - (string) the url of the image.
  2. options - (options, optional) the options for the animation

Options

  • width: (int) The width of the image viewport
  • height: (int) The height of the image viewport
  • rows: (int: default 1) The number of rows
  • cols: (int: default 7) The number of columns
  • fps: (int: default 24) Frames Per Second
  • autostart: (bool: default true) Should the animation start automatically

Returns:

  • (object) A new AnimateImage instance.

Example:

Morphing using an object:

#JS
var myAnimation = new AnimateImage('gnome-spinner.png',{
    width: 22,
    height: 22,
    rows: 5,
    cols: 7,
    fps: 10
});
$(myAnimation).inject($('spinner'));
Something went wrong with that request. Please try again.