- Web templates
- E-commerce Templates
- Loaded Commerce
- E-Commerce Comparison
- E-commerce Comparison: Payment and Shipping methods
- E-commerce templates compatibility table
- CMS & Blog Templates
- CMS Comparison
- CMS templates versions compatibility
- Facebook Templates
- Website Builders
JS Animated. How to change Camera slider speed, effect and other options
September 22, 2014
We are proud to present a new video tutorial on Camera Slideshow, a popular jQuery plugin, often used by our template developers for the sliders.JS Animated. How to change Camera slider speed, effect and other options
Sometimes you might want to experiment with the slider animation. In this tutorial we’ll take a quick glance at some of the options and features of the Camera slideshow script such as autostart, speed and transition effects.
So, open camera.js file inside "site/js" folder with a text/code editor, such as Notepad++, and let’s get started!
NOTE: some options that you see in camera.js file may not be active in your template. It depends on a particular page layout, applied CSS rules, scripts, etc.
autoAdvance option defines whether the slider starts playing automatically.
To enable the automatic start, use:
autoAdvance = true;
To disable the automatic start, use:
autoAdvance = false;
There are 2 options for slider speed: time and transPeriod.
time defines the period of time between slide transitions. In other words, that’s the amount of time for displaying each slide in miliseconds.
transPeriod – the length of the transition effect in milliseconds.
time: 7000, transPeriod: 2000,
The above code will make slides display for 7 seconds, and transition between slides will last 2 seconds.
Use fx option to change, add or remove transition effects.
To combine effects, separate their names with commas.
fx: 'simpleFade, mosaic',
This will randomly apply simpleFade or mosaic effect to slider transitions.
Number of rows/columns
Some effects, such as mosaic, use 2 options for number of rows and columns.
cols: 6, rows: 4,
For more features and examples read the comments inside camera.js file or visit the Camera slideshow developer’s site.
Thank you for reading. Feel free to rate this article and let us know if you have any questions.
Feel free to check the detailed video tutorial below:JS Animated. How to change Camera slider speed, effect and other options