Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
larukedi edited this page Nov 15, 2014 · 4 revisions

Creating an animation

Usage: $l.anim.set({object: object, property: property, from: from, to: to, time: time, unit: unit, reset: reset})

$l.anim.set({
    object:   document.body,
    property: 'scrollTop',
    from:     null, // current position
    to:       250,
    time:     800,
    unit:     null, // no units
    reset:    false
});

Creating a CSS animation

Usage: $l.anim.setCss({object: object, property: property, from: from, to: to, time: time, unit: unit, reset: reset})

$l.anim.setCss({
    object:   animObj,
    property: 'font-size',
    from:     null, // current value
    to:       30,
    time:     1200,
    unit:     'pt',
    reset:    true
});
Clone this wiki locally