What is the proper way to create a cross-fade effect? [closed]
- by Starx
When creating an image slider, using a cross fade is one of more popular effects. Various sliders use differing techniques to create such an effect. Two techniques I've found so far are:
Use an overlay and underlay <div> and fade in and out each other's visibility.
Create a <div> matching the exact size of the slider during initialization, play with its z-index property, and then fade each other.
Is there a better way to create this effect?