Tridi — Image array

This docs is for Tridi v1.x. Read Tridi v2 documentation or how to upgrade to version 2.x

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