Based on jQuery fade-in and fade-out, you can automatically switch the magic light plug-in. The prototype is a magic light effect written a few days ago, because a small bug is stuck for two days, and then the previously written code is cleared, I have written a new thought. thinking is a very strange thing. Once you fall into a dead corner, it is difficult to escape. only by cool down some time and completely putting aside the old thinking can we find a new way out.
It is actually a magic lamp effect. Considering its ease of use, it is encapsulated into a plug-in.
Plug-in features
1. Custom parameter height;
2. Repeated calls and no impact;
3. The plug-in file is small. After compression, the file size is only 1.04 kb, and the development version is 3.29 kb.
Demo and download
Click here to view the DEMO
Click here to download the plug-in
Usage
1. Introduce the jQuery library file and the jQuery. iFadeSlide. pack. js plug-in file (if there are other js files on the page, merge them to reduce http requests), and introduce location customization;
The Code is as follows: