Skip to main content

Bug Tracker

Side navigation

Ticket #1615: animBug.html
File animBug.html, 0.9 KB (added by miksago, September 14, 2007 07:08AM UTC)

This is the test cases run so far.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title><!-- Insert your title here --></title>
    <script type="text/javascript" src="http://code.jquery.com/jquery.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
      $("#scroll").css({position: 'relative', left: '545px'});
      $("#scroll").animate({left: -545}, "slow").animate({left: 545}, "slow");
      $('#block').animate({left: 20}, 500);
      $('#block').animate({left: 20}, 500);
      $('#block').animate({left: -20}, 500);
    });
    </script>
</head>
<body>
    <div id="scroll" style="height:10px; width:10px; background:red;"></div>
    <div id="block" style="background: green; height: 100px; width: 100px; position: relative"/>
</body>
</html>

Download in other formats:

Original Format