I have made a jquery function whose purpose is to add a padding in every 5 seconds but it working only once.
<script type="text/javascript">
function aniMation(){
var top=0;
var left=0;
$('#frame').css({top:++top,left:++left})
}
$(function (){
setInterval(aniMation,5000)
})
</script>
<body>
<div class="main">
<div id="frame">
text
</div>
Call setInterval(aniMation,5000) from aniMation() also, like this…