scroll plugin
Supports up, down, left and right, fade in and out, scroll time setting, animation time setting, and whether to stop setting when the mouse passes
Default configuration parameters can be modified
$(".content").easyroll({ //Default configuration parameter direction: "left", //Scrolling direction left (left) right (right) top (up) bottom (down) Default left numberr: "1", //The default number of each scroll is 1 delays: "1000", //The default time required to complete an animation is 1000, which is equal to 1 second scrolling: "1000", //The default time interval of each animation Is 1000 equal to 1 second fadein:false,//Whether it supports fade-in or fade-out, the default is false enterStop:true //Whether the mouse moves in to pause scrolling, the default is true })
html code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
JS core code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
The above is the entire content of this article, I hope you all like it.