|
jQuery Fitpic will dynamically resize and truncate background images so they perfectly fit inside the visible viewport.
While the same effect can be achieved via CSS3's background-size: cover property, that method leaves blank spots when the browser is resized to various aspect ratios that don't coincide with the photo's aspect ratio.
jQuery Fitpic fixes this problem by constantly calculating and resizing the image, so none of its dimensions are smaller than the viewport size.
A simple demo is included with the download package.
Requirements:
· JavaScript enabled on client side
· jQuery 1.8 or higher
Limitations:
· No documentation (planned).
What's New in This Release: [ read full changelog ]
· Fixed typo.
Via: jQuery Fitpic 0.0.5
0 Comment:
Post a Comment