I need help with animating the slide-in effect of 7 "card" images from the left to the center of the screen. I attempted to achieve this using the following code:
function FetchCards() {
$("#pack").css('margin-left', 0);
$("#pack").css('margin-right', 0);
$("#pack").animate({
left: '-1000px'
}, 'slow');
};
setTimeout(FetchCards, 7000);
However, it seems like my code is not working as expected. I am confused about where exactly I should declare the function "FetchCards". You can find my current code at:
http://plnkr.co/edit/L4wgzTDcV86tZK1eE23D?p=info
I would appreciate guidance on how to properly declare the "FetchCards" function and if my code will effectively hide the images until they slide in.