Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
div {
position: absolute;
width: 100px;
height: 100px;
}
.opacity {
opacity: 0.99;
}
.green {
background-color: green;
}
.red {
width: 300px;
height: 100px;
background-color: red;
}
.translate {
transform: translateX(100px);
}
</style>
</head>
<body>
<div class="red"></div>
<div class="green">
<div class="translate opacity green">
<div class="translate green"></div>
</div>
</div>
</body>
</html>