FullImage 0.04

FullImage keeps an image at the full width or height of its container, while preserving aspect ratio. This can be useful in liquid layouts, or for a full-browser-width image gallery.

Note If only one dimension of the image container can change (as it typical with liquid layouts), you do not need this class. It is better to use CSS to make that dimension of the image 100%, and the other 'auto'.



Details

Author
Michal Charemza
Current version
0.04
GitHub
michalc/FullImage
Downloads
15458
Category
Media
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_:
    • Core/Array
    • Core/Options
    • Core/Element
    • Core/Element.Event
    • Core/Element.Style
    • Core/Element.Dimensions

How to use

For a single image

If your image has id 'myImage'

new FullImage($('myImage'));

For multiple images

If your images have class 'fullImages'

new FullImage($('.fullImages'));

A single "zoomed" image (no bands at sides or top and bottom)

new FullImage($('myImage'), {zoom: true});


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