1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
5 <meta http-equiv=
"Content-type" content=
"text/html; charset=utf-8">
6 <title>Timing Functions for Transitions
</title>
7 <style type=
"text/css" media=
"screen">
19 -webkit-transition-property: left;
20 -webkit-transition-duration:
5s;
24 .container:hover .default,
25 .container:hover .ease,
26 .container:hover .linear,
27 .container:hover .ease-in,
28 .container:hover .ease-out,
29 .container:hover .ease-in-out,
30 .container:hover .cubic,
31 .container:hover .error {
36 -webkit-transition-timing-function: ease;
40 -webkit-transition-timing-function: linear;
44 -webkit-transition-timing-function: ease-in;
47 .container .ease-out {
48 -webkit-transition-timing-function: ease-out;
51 .container .ease-in-out {
52 -webkit-transition-timing-function: ease-in-out;
56 -webkit-transition-timing-function: cubic-bezier(
.42,
.0,
.58,
1.0)
60 -webkit-transition-timing-function: bananas;
69 background-color: red;
79 <h1>Timing functions for transitions
</h1>
80 <p>On hover, the elements below should transition using the
81 described timing functions
</p>
83 <div class=
"container">
86 Default (no timing function specified, should be the same as Ease)
90 Ease (the default ease function)
101 <div class=
"ease-out">
105 <div class=
"ease-in-out">
110 Cubic bezier specified the same as Ease In Out
114 Bogus definition, should become default of Ease