Home >Web Front-end >JS Tutorial >Perfectly compatible with jQuery imitation Sina graphics and text fade in and out intermittent scrolling effects of major browsers_jquery
1. Effect and function description: imitation Sina Weibo picture text list fades in and out and scrolls up and down intermittently
2. The implementation principle is to first set the div to display only 4 pictures. The extra pictures will be automatically hidden. Then add an animation event to the pictures so that they can be scrolled and played. The up and down scrolling effect is played by the li tag. The content, pictures and text inside treat each li as a whole. When scrolling, they enter the div and are displayed. When they finally leave the div, they are hidden. Set a time for the entire animation effect to run completely.
3. Operating environment
It can be implemented in IE6 IE7 IE8 and above in Firefox and Google Chrome browsers
4. Create a new file for the compressed package of all pictures, and then unzip the package and put it into a folder. The compressed package of the pictures can be seen and downloaded at the bottom of the page. After downloading, there is no need to modify the folder name because it has already been written and The path within html5 matches
5. When saving the created html file, change the encoding type to (UTF-8 with signature) so that some Chinese characters can be displayed normally. Change the saving type (T) to (all files (*.*) ), put the html5 and decompressed image folders in the same folder
6. Code