Threesixty-slider

jQuery 360 image slider plugin

Download .zip Download .tar.gz View on GitHub

Three Sixty Image slider plugin

This is a jQuery plugin to create 360 degree product image slider. The plugin is full customizable with number of options provided. The plugin have the power to display images in any angle 360 degrees. This feature can be used successfully in many use cases e.g. on an e-commerce site to help customers look products in detail, from any angle they desire.

Example 2 with Custom Controls

0%

    Custom controls

    Javascript

    window.onload = init;
    
    var car;
    function init(){
    
        car = $('.car').ThreeSixty({
            totalFrames: 52, // Total no. of image you have for 360 slider
            endFrame: 52, // end frame for the auto spin animation
            currentFrame: 1, // This the start frame for auto spin
            imgList: '.threesixty_images', // selector for image list
            progress: '.spinner', // selector to show the loading progress
            imagePath:'assets/car/', // path of the image assets
            filePrefix: '', // file prefix if any
            ext: '.png', // extention for the assets
            height: 1000,
            width: 447,
            navigation: false
        });
    
        $('.custom_previous').bind('click', function(e) {
          car.previous();
        });
    
        $('.custom_next').bind('click', function(e) {
          car.next();
        });
    
        $('.custom_play').bind('click', function(e) {
          car.play();
        });
    
        $('.custom_stop').bind('click', function(e) {
          car.stop();
        });
    
    }
    

    HTML Snippet

    <div class="threesixty car">
        <div class="spinner">
            <span>0%</span>
        </div>
        <ol class="threesixty_images"></ol>
    </div>
    <div class="custom_nav_bar">
      <button class="custom_previous btn"><i class="icon-backward"></i> Previous</button>
      <button class="custom_play btn">Play <i class="icon-play"></i></button>
      <button class="custom_stop btn">Stop <i class="icon-stop"></i></button>
      <button class="custom_next btn">Next <i class="icon-forward"></i></button>
    </div>
    

    Here we are initializing an image slider for car model. The ThreeSixty class constructor require a config object with properties like totalFrame, endFrame and currentFrame

    Support

    For support and question contact at gaurav@jassal.me or follow at @gauravjassal.