aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/transition_all.html
blob: 1d9a199d5cab1aeae2e218022fd9685b0afaa957 (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
29
<!DOCTYPE html>
<html>
<head>
<style>
section {
    position: absolute;
    display: block;
    left: 0;
    width: 64px;
    height: 64px;
    background: cadetblue;
    transition: all 3s ease;
    -moz-transition: all 3s 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>