blob: d5bc43e7b820541b9f6e7c8cd5629fe0b08e7592 (
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
|
<!doctype html>
<style>
div {
width: 100px;
height: 100px;
background: green;
}
html { height: 50%; }
::view-transition-group(*) { animation-duration: 500s }
</style>
<div></div>
<script>
function run() {
document.startViewTransition(() => {
requestAnimationFrame(() => requestAnimationFrame(() => {
window.parent.postMessage({}, "*");
}));
});
}
onload = requestAnimationFrame(() => requestAnimationFrame(run));
</script>
|