| You are here: Home > Scripts > Javascript Image Transitions, Slide, Gradient |
| ||||||||||||||||
|
|
Back to ScriptsJavascript Image Transitions 6: Slide and GradientWipeRequires Internet Explorer 5.5 or later to work The DIV is located below, before applying image filters the image object requires its layout to be set. We do that by setting its height and width properties (done inside the style tag). Having the layout defined can also be done by setting the position attribute to absolute. Or the layout can be defined by setting the property CONTENTEDITABLE in the div. Transition Slide: duration the length of time a transistion takes to complete, format seconds.milliseconds (0.0000), a value of 0.5 is half a second bands Number of strips the content is divided into slideStyle 'hide' slide new content over old, 'push' push old content out with new content and 'swap' alternating bands expose new content (see demo below) Transition GradientWipe: duration the length of time a transistion takes to complete, format seconds.milliseconds (0.0000), a value of 0.5 is half a second motion sets the direction of motion for the transition. Possible values: up, down, right, left gradientSize the percentage of the object that is covered by the gradient band To execute ANY transistions on an image, div, span or body you need to follow 3 steps
DHTML SourceReferences: MSDN - Slide transition MSDN - GradientWipe transition |
|
contact us: elouai@gmail.com ©2003-2008 eLouai.com, All rights reserved |