Looking to enhance my 360 image rotator with an indicator that fades out after the first image. I added this function to the end of my 360.js
:
(function(){
if(
$('#first').css('visibility','hidden')) {
$('#rotate').fadeOut();
}
else {
$('#rotate').fadeIn();
}
});
Everything seems fine, but the script isn't checking whether the image is visible or not. I attempted to bind it to mousedown and mousemove events in my 360.js
, but without success. Any suggestions on how to tackle this issue?
Here's a fiddle