(function ($) {
$(document).ready(function () {
$('#road').pan({ fps: 30, speed: 9 });
$('#city2').pan({ fps: 30, speed: 2 });
$('#city3').pan({ fps: 30, speed: 5 });
$('#sky').pan({ fps: 30, speed: 0.5 });
$('#plane1').sprite({ fps: 10, no_of_frames: 8 });
$('#stop').click(function () {
$('#body').stop();
$('#city2').stop();
$('#city3').stop();
$('#sky').stop();
$('#road').stop();
});
});
});
I have a code snippet here where I have some elements moving. I am trying to stop the movement of the city and road elements, but the stop function doesn't seem to be working. Can anyone assist me with this?