Tridi — Image array

Tridi offers an option to use custom arrays of image paths while initializing the container. To use this option, pass your image array to images property.

Code

HTML

<div id="tridi-array"></div>

JavaScript

var imgArray = new Array(36)
  .join()
  .split(',')
  .map(function(item, index) {
    return '../images/white/' + ++index + '.jpg';
  });

new Tridi({
  element: '#tridi-array',
  images: imgArray
}).load();

« Back to main page