javascript - Dynamically change size of objects without affecting other elements -
i understand title may little confusing (i not know how else ask question) here example working on.
http://beautifulcreationphotography.net/gallery.html
so issue whenever hover on image, other images move around when image enlarges. 1 possible solution use absolute positioning, such hassle manually positioning images in grid (i'm looking make grid 3 columns wide).
what other solutions this? i'm open both pure javascript solutions using js libraries.
html: http://pastebin.com/pfurppdy
js: http://pastebin.com/9m7twnxu
css:
#gallery { display:inline; margin:50px; height:300px; } #gallery img { position:relative; width:200px; margin:30px; }
ever considered using javascript frameworks, jquery?
you might wanna check site: http://codecanyon.net/item/image-effects-pack-jquery-powered/full_screen_preview/136861?ref=lvraa&ref=lvraa&clickthrough_id=60503324&redirect_back=true
scroll zoom effect , see you're looking for.
Comments
Post a Comment