aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/transition_multiple.html
blob: 14d99ddfeff69d1e28dcdb513f4b0c41b2ce1468 (plain) (blame)
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
<!DOCTYPE html>
<html>
<head>
<style>
section {
    position: absolute;
    display: block;
    left: 0;
    width: 64px;
    height: 64px;
    background: cadetblue;
    transition: left 3s ease, top 1500ms ease;
}
</style>
</head>
<body>
<section></section>
<script>
var sections = document.getElementsByTagName('section');
sections[0].setAttribute('style', "left: 0; top: 0");
setTimeout(function() {
    sections[0].setAttribute('style', "left: 512px; top: 512px");
}, 0);
</script>
</body>
</html>