Upon hearing the council's request on wanting a testimonial section I went on to research the Javascript plugin slick.js. Slick.js is a pre-made carousel template that can be easily modified by simply adding or subtracting a line in the Javascript (eg. If I wanted to add dots at the bottom of the slider, to indicate the page number, all I'd have to do is add the clause dots:true).
Whilst it looked rather complicated at the start, I soon found out just how easy the plugin was to use. All I had to do was add a certain class to a div with multiple sub-divs, initialize the slider through a separate Javascript file and include all of the slider.js files and everything would work perfectly.
To customize the words and placing, all I had to do was create a separate CSS file and modify specific classes and IDs. To modify how the slider works itself, I'd have to modify the Javascript file that initializes the slider. So in this case all I had to do was:
There was a manual on the slick.js downloads page that clarifies each individual clause above. Here are just a few:
No comments:
Post a Comment