Click here to Skip to main content
15,913,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like incorporate this auto alignment technique into my website.
http://activeden.net/item/dynamic-xml-horizontal-image-gallery/full_screen_preview/45481[^]
My guess was that it was done with jquery. Does anyone know the correct name of this function? Any tutorial links would be much appreciated.
Thanks.
JimTiger
Posted
Comments
[no name] 24-Jun-10 16:28pm    
What do you mean by "auto alignment"?

I think you're meaning, by auto alignment, how the images are lining up when you release the scroll bar?

The source of that page reveals that it's a Flash thing there, not jQuery. You can see this by viewing the source of this file: http://s3.envato.com/files/130621/index.html

Unfortunately there's no magic alignment function, but you could write one.

You're going to need to have the slider represent x number of images (or elements) that are of width y. You'd use jQuery animation to animate to the appropriate placement of the elements inside a div that hides it's overflow.

You might want to check out a few samples on jQuery sliders as this would give you a huge head-start on making progress.

Cheers.
 
Share this answer
 
Yes James thats what I meant. I should have guessed it would have been done in flash since it was a swf. In my project I am using a swf inside a div, so I could easily pull this off with flash then. Although I plan to achieve this with jQuery mainly because I want to keep the browser scroller. Writing this function sounds like a challenge. Thanks for the points of reference.
Take it easy.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900