Demo at Codepen
Slider made with object-oriented methods, using native (vanilla) javascript
To be placed into the initiation code, and then passed to the relevant configuration objects, you can pass parameters are:
- target
{string}
surrounded by images of the div id, the default slide - showMarker
{boolean}
whether to display the current image tag value, default false - marker
{boolean}
tag isol li
, default false - showController
{boolean}
about whether to display control marks, default false - setClass
{object}
- marker
{string}
mark CSS classes, separated by a space between a plurality of classes - active
{string}
marker of current active image - unactive
{string}
remaining markers of inactive images - controllerPrev
{string}
class of left control - controllerNext
{string}
class of right control
- marker
what's more, if the website is based on the jquery library, and you can see the plugin of jquery jquery-slide.js
MIT