Web Design Ohio | Web Development Ohio | Website Design Ohio | Graphic Design Ohio | Custom CRM | Joomla Web Design
Web3box Services
How to develop a jQuery endless scroller
|
| Blog - Web Design Ohio Journal | |
|
Hay there, One of the web development projects I'm working has given me the chance to build an "endless" image scroller in jQuery and share it with you. The challenge was to figure out how to make the images scroll in a continuous flow and the solution I came up with was to split the images in two containers and when one container went out of view reset it's position and restart the animation.
I hope this will help all you web designers out there in Ohio or any other place, who will want to develop such a animation effect. This is an outdated version, the new one is hereI will start by presenting the CSS rules. First we have a mask that will hide all the movement by sitting on top of the two animated containers. As you can see I've already established a positioning for the two containers and that is one at 0 pixels and the other at 1165 pixels and this is because all my images in one container summed to 1165 but you will have to adapt this widths and positions to your needs. Don't forget that you will have to float left all the images inside the container. Now regarding the jQuery script what it actually does is scroll both containers to the right by 1155 pixels ... when this action is complete and the second container has reached +1155 pixels (from 0), I reset it's position to -1155 pixels and the whole animation restarts giving the impression of an endless scroll. You can view a live example in the header area of this website we are developing: Trip Joiner. Feel free to ask me any questions regarding it and I will be more then happy to help. Thanks again for reading this and don't forget to like our Facebook page and participate in our prize contest. |
|
Get in touch!
Feel free to contact us for a free quote of your future website design !
Address: 99 West Avenue, Tallmadge, OH 44278
Telephone: (330) 633-3810
FAX: (330) 633-7279
E-mail: 
Follow us on Twitter
Follow our tweets about the web twitter.com/web3box
Most read
- Web Applications Examples
- A simple jQuery slideshow
- Which is the best web browser ?
- Web Development Clients Testimonials
- Our Specialists
- The Way we Work
- A healthy belief
- What do you think ? - Update
- Module List
- WEB3BOX CMS
- Joomla
- Reports
- A simple jQuery and PHP Ajax Request
- What do you think ?
- VirtueMart
Latest Blog Entries
- Choose your favorite logo design - round 3
- How to develop a jQuery endless scroller - New version
- Choose your favorite logo design - round 2
- How to develop a jQuery endless scroller
- Free Original Logo Design for one of our Facebook Fans
- We're Hiring - Join The Best Web Development Company in Ohio
- A simple jQuery and PHP Ajax Request
- Choose your favorite logo design
- A Wonderful Year with Web3box
- What do you think ? - Update




