Circular Rotating Slider With jQuery And CSS3

Circular Rotating Slider With jQuery And CSS3

A fancy jQuery plugin for creating a responsive, mobile-friendly, circular rotator where the users are able to rotate through slides with mouse drag and touch swipe. Based on CSS3 transform and clip-path properties.

1. Insert jQuery and the jQuery Rotating Slider's files into the html document.

<link rel="stylesheet" href="rotating-slider.css">
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="jquery.rotating-slider.js"></script>

2. Insert your own slides to the slider/rotator.

<div class="rotating-slider">
  <ul class="slides">
    <li>
      <div class="inner">
        <h2>jQuery Rotating Slider</h2>
        <p>A fancy rotator plugin.</p>
      </div>
    </li>
    <li>
      <div class="inner"></div>
    </li>
    <li>
      <div class="inner">
        <h2>Slide 2</h2>
        <p>This is slide 2</p>
      </div>
    </li>
    <li>
      <div class="inner">
      </div>
    </li>
    <li>
      <div class="inner">
        <h2>Slide 3</h2>
        <p>This is slide 3</p>
      </div>
    </li>
    <li>
      <div class="inner">
        <h2>Slide 4</h2>
        <p>This is slide 4</p>
      </div>
    </li>
  </ul>
</div>

3. Initialize the rotating slider and done.

$(function(){ 
  $('.rotating-slider').rotatingSlider();
});

4. To customize the rotating slider just by overriding and passing the following options to the rotatingSlider() function.

$(function(){ 
  $('.rotating-slider').rotatingSlider({
    // auto play
    autoRotate: true,
    // auto play interval
    autoRotateInterval: 6000,
    // is draggable?
    draggable: true,
    // slider controls
    directionControls: true,
    directionLeftText: '&lsaquo;',
    directionRightText: '&rsaquo;',
    // animation speed
    rotationSpeed: 750,
    // size of slider
    slideHeight : 360,
    slideWidth : 480,
    
  });
});

This awesome jQuery plugin is developed by tylernj42. For more Advanced Usages, please check the demo page or visit the official website.

  • Publication date: 22.11.2017
  • Source

Whoops, looks like something went wrong.

(1/1) ErrorException

file_put_contents(): Only 0 of 237 bytes written, possibly out of free disk space

in Filesystem.php (line 122)
at HandleExceptions->handleError(2, 'file_put_contents(): Only 0 of 237 bytes written, possibly out of free disk space', '/home/p336588/web/ivanovdmitry.com/public_html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 122, array('path' => '/home/p336588/web/ivanovdmitry.com/public_html/storage/framework/sessions/a2OGxLEZHnpieukNY4Sg7O3VyWh9Bm7pjWmNdwrJ', 'contents' => 'a:3:{s:6:"_token";s:40:"1o7mEpXi2VHyz4m9KhbwFXC4nZwk2qDRKKDLXFIr";s:9:"_previous";a:1:{s:3:"url";s:79:"http://ivanovdmitry.com/blog/post/circular-rotating-slider-with-jquery-and-css3";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
at file_put_contents('/home/p336588/web/ivanovdmitry.com/public_html/storage/framework/sessions/a2OGxLEZHnpieukNY4Sg7O3VyWh9Bm7pjWmNdwrJ', 'a:3:{s:6:"_token";s:40:"1o7mEpXi2VHyz4m9KhbwFXC4nZwk2qDRKKDLXFIr";s:9:"_previous";a:1:{s:3:"url";s:79:"http://ivanovdmitry.com/blog/post/circular-rotating-slider-with-jquery-and-css3";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 2)in Filesystem.php (line 122)
at Filesystem->put('/home/p336588/web/ivanovdmitry.com/public_html/storage/framework/sessions/a2OGxLEZHnpieukNY4Sg7O3VyWh9Bm7pjWmNdwrJ', 'a:3:{s:6:"_token";s:40:"1o7mEpXi2VHyz4m9KhbwFXC4nZwk2qDRKKDLXFIr";s:9:"_previous";a:1:{s:3:"url";s:79:"http://ivanovdmitry.com/blog/post/circular-rotating-slider-with-jquery-and-css3";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true)in FileSessionHandler.php (line 83)
at FileSessionHandler->write('a2OGxLEZHnpieukNY4Sg7O3VyWh9Bm7pjWmNdwrJ', 'a:3:{s:6:"_token";s:40:"1o7mEpXi2VHyz4m9KhbwFXC4nZwk2qDRKKDLXFIr";s:9:"_previous";a:1:{s:3:"url";s:79:"http://ivanovdmitry.com/blog/post/circular-rotating-slider-with-jquery-and-css3";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}')in Store.php (line 128)
at Store->save()in StartSession.php (line 88)
at StartSession->terminate(object(Request), object(Response))in Kernel.php (line 218)
at Kernel->terminateMiddleware(object(Request), object(Response))in Kernel.php (line 189)
at Kernel->terminate(object(Request), object(Response))in index.php (line 58)