Element.crossfade 0.2.2b

Change background-image with fade effect



Details

Author
Sergio Panagia
Current version
0.2.2b
GitHub
panaghia/Element.crossfade
Downloads
14129
Category
Effects
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_: Fx.CSS

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.


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus