Skip to content

panaghia/Element.crossfade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Element.crossfade

Change background-image with fade effect

Screenshot

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.