Âé¶¹Éç

Please turn on JavaScript. To find out how to do this visit the .

Simple and powerful animations.

Methods

css

Animates CSS properties of an element.

Synopsis

glow.anim.css(element, duration, spec, opts);

Parameters

element
Type
| glow.dom.NodeList |

Element to animate.

This can be a CSS selector (first match will be used), glow.dom.NodeList (first node will be used), or a DOM element.

duration
Type

Animation duration, in seconds by default.

spec
Type

An object describing the properties to animate.

This object should consist of property names corresponding to the CSS properties you wish to animate, and values which are objects with 'from' and 'to' properties with the values to animate between or a number/string representing the value to animate to.

If the 'from' property is absent, the elements current CSS value will be used instead.

See the spec example below for more information.

opts
Type

Optional options object.

tween

The way the value moves through time. See glow.tweens.

Type
Default
linear tween
Optional
Yes
useSeconds

Specifies whether duration should be in seconds rather than frames.

Type
Default
true
Optional
Yes

Returns

Example

// an example of an spec object
{
  "height": {from: "10px", to: "100px"},
  "width": "100px",
  "font-size": {from: "0.5em", to: "1.3em"}
}
// animate an elements height and opacity to 0 from current values over 1 second
glow.anim.css("#myElement", 1, {
  "height" : {to:0},
  "opacity" : {to:0}
}).start();

Classes

Animation

Controls modifying values over time.

Timeline

Synchronises and chains animations.

Documentation generated by 2.1.0 on Mon Jul 06 2009 11:46:35 GMT+0100 (BST)

Âé¶¹Éç iD

Âé¶¹Éç navigation

Âé¶¹Éç © 2014 The Âé¶¹Éç is not responsible for the content of external sites. Read more.

This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.