simple jQuery plugin for dragging 360° panoramas (cylindrical projection) and other seamlessly looping images around
JavaScript
Latest commit 03426f9 Apr 6, 2015 @mahonnaise license added, closes #3
Permalink
Failed to load latest commit information.
LICENSE.md license added, closes #3 Apr 6, 2015
jquery.cyclotron.js first commit Jan 27, 2012
readme.md demo link Jan 27, 2012

readme.md

jquery.cyclotron.js (Demo)

1. You need some element with a background image. E.g.:

<div class="cycle" style="background:url(panorama.jpg);height:512px"></div>

2. Cyclotronify:

$(document).ready(function ($) {
    $('.cycle').cyclotron();
});

3. 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)