Home > Element.crossfade

Element.crossfade

Element.crossfade is a project mainly written in JavaScript, it's free.

simple image transition

Element.crossfade

Change background-image with fade effect

How to use

This plugin extends the element class by providing a function named crossfade to tween background-image property.

You can use this function this way:

document.id('element').crossfade('end_image.jpg');

The element's position style (position:[..]) should be expressly declared in stylesheet.

Previous:jSinify