The beautiful Slider effect class is finally encapsulated successfully.

Source: Internet
Author: User

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">


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.