Skip to content

Instantly share code, notes, and snippets.

@taryneast
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taryneast/8970802 to your computer and use it in GitHub Desktop.
Save taryneast/8970802 to your computer and use it in GitHub Desktop.
WDI - Image Carousel App

#Image Carousel App

You will construct an image carousel from the spec provided below.

Make one like the carousel provided by Bootstrap ( http://getbootstrap.com/2.3.2/javascript.html#carousel) - but you will be building yours from scratch

##Specification:

  • We are going to rebuild this from scratch.
  • Add event listeners for mouseover and mouseexit to change the opacity of the next and previous buttons.
  • Implement the toLeft and toRight functions that will move the margin to display either the next or previous image.
Bonus
  • Get the animation working so that the images slide across rather than just appearing

You will need to find a set of images that are roughly the same size to use in your carousel.

The example html assumes you'll have one for London, NYC and SF... you can have whatever you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment