blob: a789b706efd155a9c66b0907413cab721bb7570a (
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>Shared transitions: 3d transform ref</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:vmpstr@chromium.org">
<style>
div { box-sizing: border-box; will-change: transform }
.wrap_perspective {
perspective: 100px;
width: max-content;
transform: translate(200px);
}
.rotatex {
transform-style: preserve-3d;
transform: rotateX(20deg);
background: blue;
}
.shared {
contain: layout;
width: 100px;
height: 100px;
}
body { background: pink }
</style>
<div class="wrap_perspective"><div class="rotatex shared"></div></div>
|