- Overview
- Documents
jQuery Cyclotron is a simple jQuery plugin for dragging 360° panoramas (cylindrical projection) and other seamlessly looping images around
Source: github.com
May 14, 2014 in Drag and drop 4439 views
jQuery Cyclotron is a simple jQuery plugin for dragging 360° panoramas (cylindrical projection) and other seamlessly looping images around
Source: github.com
1. INCLUDE JS FILES
<script src="jquery-1.7.1.min.js"></script> <!--<script src="cycle.js"></script>--> <script src="jquery.cyclotron.js"></script>
2. HTML
<div class="cycle" style="background:url(panorama.jpg);height:512px"></div>
3. JAVASCRIPT
$(document).ready(function ($) { $('.cycle').cyclotron(); });
4. OPTIONS
dampingFactor - should be somewhere around 0.9, should be > 0 and < 1 (default: 0.93)
historySize - size of the array which stores the deltas (default: 5)
Tagged with:
cyclotron
jquery cyclotron
dragging 360°
dragging
panorama
cylindrical
looping images
looping
seamlessly
Related Articles