blob: 30f26a2c1b26151dcf4df3867d57ab7353d7943e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!DOCTYPE HTML>
<style>
.perspective {
background: red;
width: 100px;
height: 100px;
overflow: hidden;
box-shadow: 0 0 100px 100px rgba(10, 10, 10, 0.0);
}
.cover {
background: green;
height: 500px;
transform: translateZ(0);
}
</style>
<div class="perspective">
<div class="cover"></div>
</div>
|