blob: 23fa74dd5e665f4b63322b13f24caf9be691c15b (
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
26
27
28
|
<!DOCTYPE html>
<title>View transitions: use css tags for shared elements (ref)</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:vmpstr@chromium.org">
<style>
div { contain: paint; }
#left {
background: blue;
width: 100px;
height: 100px;
position: absolute;
top: 50px;
left: 50px;
}
#right {
width: 50px;
height: 50px;
background: green;
position: absolute;
top: 50px;
left: 250px;
}
body { background: lightpink; }
</style>
<div id=left></div>
<div id=right></div>
|