Posts tagged ‘function’

JavaScript Tween function

This is a function I wrote to use for creating advanced easing effects without using JQuery, MooTools or other JS libraries.

The function can be called as follows:
tween(element, property, from, to, duration, [optional] function)
Parameters
element: The id of the HTML element you want to animate

property: The CSS property that you want to animate

from: The initial value (like [...]