summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/transition-accelerated.html
blob: a898c29e84cbdf5e7f5f7904f21467dae28c68f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>

<html>
<head>
  <style type="text/css" media="screen">
    .box {
      position: relative;
      height: 100px;
      width: 100px;
      margin: 10px;
      background-color: blue;
    }
    
    .slow {
      -webkit-animation: slow 2s infinite linear alternate;
    }
    
    .fast {
      -webkit-animation: fast 2s infinite linear alternate;
    }
    
    @-webkit-keyframes slow {
      from {
        left: 0px;
      }
      to {
        left: 400px;
      }
    }

    @-webkit-keyframes fast {
      from {
        -webkit-transform: translateX(0);
      }
      to {
        -webkit-transform: translateX(400px);
      }
    }
  </style>
</head>
<body>
  <p>The lower box should animate more smoothly than the upper one (on Mac).</p>
  <div class="box slow"></div>
  <div class="box fast"></div>
</body>
</html>