Extensible encapsulation method to facilitate the realization of different special effects. The source code provides the implementation method of the fade-out effect (fade function) and the move-out effect (move function).
One sentence function call to achieve image switching special effects.
picChange("id of picture ul list", method reference for switching pictures, picture switching time, picture moving direction);
Use the simplest calling method and the most concise html code to implement this commonly used picture switching Effect.
Usage example:
html code: