Hallo,
I found this panorama viewer:
[url]https://github.com/peachananr/panorama_viewer
I want to add automatical scrolling and tried this simple approach:
[CODE] $(document).ready(function () {
$(“.panorama”).panorama_viewer({
repeat: true
});
var pos = 0;
window.setInterval(function () {
//var pos = $(“.pv-inner”).css(“background-position”);
$(“.pv-inner”).css(“background-position”, pos++ + “px 0%”);
}, 10);
});
This doesn’t work as desired: Automatic scrolling only works when the mouse is moved. One had to integrate the automatic scrolling in the plugin but I don’t understand it’s code. Any help is appreciated. I would like to have a button for left, right and stop automatic scrolling.
Best regards – Ulrich