I am using animation.css and jquery to create a slideInleft animation so that content comes in and stays and then slideOutleft and then I want content to come in from right I mean slideInright and stay for few secs and then slideOutRIght. This effect should happen continuously. I am trying this but something is wrong . To start off with the left animation I have written code like this
var txt = Data;
function AnimateOneByOne()
{
if( xCnt < txt.length && txt[xCnt].value){
$("#value").empty().append(txt[xCnt].value.toFixed(2)+" "+txt[xCnt].units).addClass('slideInLeft',
function(){ AnimateOneByOne() });
$("#text").empty().append(txt[xCnt].name).addClass('slideInLeft',
function(){ AnimateOneByOne() });
}
xCnt += 1;
}
AnimateOneByOne();