Slider class function description:
1. You can control the div on any page.
2. slider can also achieve transparency changes while sliding, making the entire process smoother and more beautiful.
3. Strong controllability. sliding at different directions and speeds of div with different sizes is achieved through multiple parameters
4. Easy to call. initialization can be completed in one sentence. The invisibility control of the slider is simpler. For details, see the code example.
Description of the implementation process of the Slider class:
I feel that today's websites often use divs in the so-called Web2.0 mode to hide the effect. The previous section has to implement one on the webpage. After successful attempts, I want to encapsulate a class for future use, it can also be opened for use by everyone. You can also learn javascript-like programming methods (I have been using Microsoft's stuff before and I am not familiar with javascript). I encountered some problems in the process, I posted a post on 51js for help, but I didn't report much hope. The results were explained and helped by two friends, caudex and he1a2s0. The problem was solved successfully, I would like to express my heartfelt thanks to both of you again. Of course, I would also like to express my gratitude for the disdain and ridicule of the FlyKing hero, because it also gave me great motivation.
Well, I don't want to talk about it. Although my implementation method is definitely not the best, it is even primitive and clumsy, it is actually implemented and presented to everyone, if you have a view, use it. Or there is a better way to give advice, my mailbox douwenming@gmail.com, welcome to contact. Xmlns = "http://www.w3.org/1999/xhtml">