Thread: Carousel
View Single Post
02-18-2008, 12:17 AM
#2
Szandor is offline Szandor
Status: Junior Member
Join date: Jan 2008
Location: Växjö, Sweden
Expertise:
Software:
 
Posts: 45
iTrader: 0 / 0%
 

Szandor is on a distinguished road

  Old

Here's a really quick breakdown of the workflow:
  • Make a <div> container and set the overflow to hidden.
  • Inside that container, create one <div> for each item.
  • Place the items in a row, using CSS. Some of the items will end up outside, that's a good thing.
  • Using JavaScript, change the placement of all the <div> blocks when a button is pushed so that the entire row of items move.
You can use MooTools for replacing the <div> blocks, it's simple to use and you can get some good transitions.