I'm currently working on creating a 360-degree view using the SpriteSpin API. Everything is functioning as expected, but I have an additional request. I need to specify a specific image to be the initial landing image when the page loads. The landing image should be visible first and then the animation should start from that point.
For instance:
var imageSrcList = [
"folder/image_1.jpg",
"folder/image_2.jpg",
"folder/image_3.jpg",
"folder/image_4.jpg",
"folder/image_5.jpg",
"folder/image_6.jpg",
"folder/image_7.jpg",
"folder/image_8.jpg",
"folder/image_9.jpg"
];
$('.container').spritespin({
source: imageSrcList,
sense: -1,
animate: false,
plugins: ['360', 'drag', 'wheel'],
wrap: isWrap
});
In the example above, the 360-degree view starts with image_1.jpg
when loaded. However, I want to display the 5th image, image_5.jpg
, initially and continue the animation from there onwards.
When swiping right, it should show images in this order: image_5.jpg --> image_6.jpg --> image_7.jpg and so on. When swiping left, it should show images in this order: image_5.jpg --> image_4.jpg --> image_3.jpg and so forth.
I would greatly appreciate any assistance with this matter.