2 <html class=
"reftest-wait">
4 Transform animation and opacity transition with different durations
8 width:
100px; height:
100px;
11 @keyframes translate {
12 from { transform: translateY(
0px); }
13 to { transform: translateY(
0px); }
16 <div id=
"target"></div>
18 window
.addEventListener("load", () => {
19 var target
= document
.getElementById("target");
20 target
.style
= "opacity: 0;";
22 getComputedStyle(target
).transform
;
24 target
.style
= "transition: opacity 0.2s; opacity: 1; " +
25 "animation: translate 0.1s;";
27 target
.addEventListener("transitionend", () => {
28 document
.documentElement
.classList
.remove("reftest-wait");