You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="lead">Turntable.js will accept an object as a parameter. You can decide if you want to flip through the images as your mouse moves along the X or Y axis of the container. You can pass in the object when you call the plugin like this.</p>
203
+
<pclass="lead">Turntable.js will accept an object as a parameter. There are three keys you can use to customize the slider. You can decide if you want to flip through the images as your mouse moves along the X or Y axis of the container, or as you scroll down the page using <b>axis</b>. If you want to reverse the direction it goes through the images, pass in <b>reverse: true</b>. You can also decide where the container will start to turn while you scroll down the page. Try playing around with the different options until you find what works best for you. You can pass in the object when you call the plugin like this -</p>
204
204
<preclass="prettyprint pad language-java">
205
205
206
-
$('#mySpinnyContainer').turntable(
207
-
{axis: 'y'}
208
-
);
206
+
$('#mySpinnyContainer').turntable({
207
+
axis: 'x, y, or scroll',
208
+
reverse: boolean, // true or false, will reverse the array of images
209
+
scrollStart: 'top, middle, or bottom', // only necessary if axis = 'scroll'
210
+
});
209
211
</pre>
210
212
<pclass="lead">The plugin will default to the X axis if no option is provided.</p>
0 commit comments