One runtime plug-in (continuous optimization) and a runtime plug-in for continuous optimization
This is a rough plug-in 1.0 I wrote. The image scrolling function will be added in later versions !!
Usage:
I. HTML Template
<Div id = "marquee-wrapper"> <div> <p> This is a rough marquee I wrote. You can set the scroll direction and the specific width and height style, the speed can be set and will be continuously optimized later. </P> </div>
First, the frame of this marquee is fixed and cannot be changed. The id of the div at the outermost layer is determined by yourself.
Ii. attributes and Parameters
// Author: Nangxi // Version: 1.0 // attribute resolution possible value // id of the marquee custom // decoration scroll direction left, right, top, bottom // width of the headlight div width customized (unit: px) // height: self-defined div height (unit: px) // you can set the rolling speed of the speed.
Iii. Call
Var marquee = {id: "marquee-wrapper", decoration: "left", width: 500, height: 50, speed: 10}; scroll (marquee );
Edit the corresponding parameters and call the scroll () method.
Plug-in: https://download.csdn.net/download/qq_34551390/10312103