my goal is to write a jquery that flips an image on the vertical y-axis after every 3 seconds and shows another image in the back.It is suppose to keep filliping the images back and front. Bellow you can see my script that I put together using to other examples. I am unable to execute the said function and I don't get any errors from the browser. I'm new to jquery
I'm using this example:
http://jsfiddle.net/gaby/kSR9H/2/
here is my script:
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)">
    <meta name="dcterms.created" content="la, 18 loka 2014 16:05:10 GMT">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <title></title>
    <!--[if IE]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="flipper">
        <div id="front">
            <img src="img\1.11.jpg" />
        </div>
        <div class="back">
            <img src="img\1.12.jpg" />
        </div>
    </div>
     <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script>
$(document).ready(function() {
 setTimeout(function() {
   $('#front').animate({
     rotateY: "+-" + (Math.PI)/2
     }, 500, function() {
       $(this).toggleClass('back');
     }).animate({
       rotateY: "+-" + (Math.PI)/2
 }, 2000);
});
});
</script>
  </body>
</html>