Jump to content

Image Fade Out, New Image Fade In..


Caitlin-havener

Recommended Posts

It's pretty simple in concept, just a little tricky in practice. Using something like jquery would certainly be helpful because it has animate/fade functions which also accept callbacks, so you can be sure that the next image won't load until the previous animation/fade has completed. So using an interval, you would run a function that would increment some sort of index through an array of pictures, (keeping in mind you need to wrap when you reach the end). Then you would want to fade out the previous image, set the src/background with the new image path, and then fade it in.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...