I'm using the following jQuery plugin: http://keith-wood.name/imageCube.html
I'm setting up a custom grid based design, here is my js:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="jquery.imagecube.js"></script>
<script type="text/javascript">
$(function () {
$('#basicCube1').imagecube({pause:100, direction:'left', repeat:false});
});
$(document).ready(function() {
$("#basicCube1").hover(
function () {
$('#basicCube1').imagecube('start');
},
function () {
$('#basicCube1').imagecube('stop');
}
);
});
</script>
here is my css:
#container{width:450px;}
#basicCube1 { width: 150px; height: 150px; float:left; }
here is my html:
<div id="container">
<div id="basicCube1">
<img src="http://keith-wood.name/img/uluru.jpg" alt="Uluru" title="Uluru">
<img src="http://keith-wood.name/img/islands.jpg" alt="Islands" title="Islands">
</div>
</div>
I have also setup a fiddle: http://jsfiddle.net/d9gN5/1/
I have setup a hover event on #basicCube1
, which works fine. The problem I have is that when you stay hovered on the element, it keeps rotating. Once hovered I would like the rotation to stop until the element is not hovered on anymore.
Is this achievable with this plugin? I have read through the documentaion here: http://keith-wood.name/imageCubeRef.html and nothing seems to stand out.