Version 1.1
CSS interpolation, both on elements and objects with CSS rules.
Allows you to interpolate colors, distances and everything else that jQuery and jQueryUI can animate. Exposes the jQuery/jQueryUI code that interpolates for smooth animations.
Smoothly blend a CSS property with the value for the element
.interpolate( name, value[, blend[, easing]] )
- string
nameName of the property - string
valueValue of the property - float
blendRatio of blending in range [0,1] (default0.5) - string
easingEasing method to use (defaultlinear)
.interpolate( map[, blend[, easing]] )
- string
mapSet of CSS properties to blend into - float
blendRatio of blending in range [0,1] (default0.5) - string
easingEasing method to use (defaultlinear)
Both return the jQuery object on which it was called, so can be chained.
Smoothly blend between two maps of CSS properties.
jQuery.interpolate( start, end[, blend[, easing]] )
- object
startSet of CSS properties to blend from - object
endSet of CSS properties to blend into - float
blendRatio of blending in range [0,1] (default0.5) - string
easingEasing method to use (defaultlinear)
Returns an object Set of CSS properties representing the blended state