mirror of
https://github.com/servo/servo.git
synced 2025-07-30 10:40:27 +01:00
28 lines
627 B
HTML
28 lines
627 B
HTML
<!DOCTYPE html>
|
|
<title>View 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 {
|
|
width: 100px;
|
|
height: 100px;
|
|
view-transition-name: shared;
|
|
}
|
|
body { background: pink }
|
|
|
|
</style>
|
|
|
|
<div class="wrap_perspective"><div class="rotatex shared"></div></div>
|
|
|
|
|