|
If the user resizes the browser window, the image automatically resizes to fit the new container.
Can be easily integrated via a few lines of JavaScript.
More documentation in the project's README file.
Here are some key features of "Backstretch":
· centeredX - The ratio of the width/height of the image doesn't always jive with the width/height of the window.
· centeredY - This parameter controls whether or not we center the image on the Y axis to account for the aforementioned discrepancy.
· speed - This is the speed at which the image will fade in, after downloading is complete.
Requirements:
· JavaScript enabled on client side
· jQuery 1.42 or higher
What's New in This Release: [ read full changelog ]
· Now accepts an array of images to create a slideshow.
· Can attach Backstretch to any block-level element, not just the body.
· Deprecated "speed" option in favor of "fade" for fadeIn timing.
· Added "duration" option, and Slideshow API.
Via: Backstretch 2.0.2
0 Comment:
Post a Comment