The content on this website, including videos and code examples, is for educational purposes only. All demonstrations and designs are fictional and created to illustrate coding techniques. Any resemblance to existing websites or brands is purely coincidental.
The creators and administrators of this website do not claim ownership or affiliation with any existing websites or companies. Users are encouraged to use the information responsibly for learning purposes. Liability for any misuse of the content provided is not accepted.
Below is the html code for this video.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Room 404 Errorverse</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container-room">
<div class="container-cube">
<div class="room-wall"></div>
<div class="room-wall"></div>
<div class="room-wall"></div>
</div>
<div class="text-oops">
<h2>OOPS!</h2>
<p>The page you're seeking is currently off the grid :(</p>
</div>
<div class="plane-line">
<div class="basement-area">
<div class="ladder-shadow"></div>
<div class="ladder"></div>
</div>
<div class="number-four">4</div>
<div class="number-four">4</div>
<div class="btn-home"><a href="#">BACK TO HOME</a></div>
</div>
</div>
</body>
</html>
Below is the css code for this video.
style.css
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');
* {
margin: 0;
padding: 0;
}
body {
display: flex;
height: 100vh;
width: 100vw;
background: #ff9671;
font-family: "Varela Round", sans-serif;
justify-content: center;
align-items: center;
perspective: 1000vmin;
overflow: hidden;
}
body * {
transform-style: preserve-3d;
}
.container-room {
display: flex;
height: 100vh;
width: 100vw;
justify-content: center;
align-items: center;
overflow: hidden;
}
.container-cube {
position: absolute;
height: 250vmin;
width: 250vmin;
transform: rotateX(50deg) rotate(45deg);
pointer-events: none;
}
.container-cube .room-wall {
position: absolute;
top: 50%;
left: 50%;
height: 100%;
width: 100%;
border-radius: 2px;
box-shadow: 0 0 0.5vmin 0 #ff9671 inset, 0 0 5vmin 0 #ff9671;
}
.container-cube .room-wall:nth-of-type(1) {
background: radial-gradient(circle at 100% 0%, #af4621, transparent 45vmin), radial-gradient(circle at 100% 0%, #f67a4d, #af4621);
transform: translate3d(-50%, -50%, -125vmin) rotateY(180deg);
}
.container-cube .room-wall:nth-of-type(2) {
width: 250vmin;
background: radial-gradient(circle at 0% 0%, #af4621, transparent 45vmin), radial-gradient(circle at 0% 0%, #f67a4d, #af4621);
transform: translate(-50%, -50%) rotateY(-90deg) translate3d(0, 0, 125vmin);
}
.container-cube .room-wall:nth-of-type(3) {
height: 250vmin;
background: radial-gradient(circle at 0% 0%, #af4621, transparent 45vmin), radial-gradient(circle at 0% 0%, #f67a4d, #af4621);
transform: translate(-50%, -50%) rotateX(90deg) translate3d(0, 0, 125vmin);
}
.text-oops {
position: absolute;
top: 10%;
left: 0;
width: 100%;
font-size: 2.25vmin;
transform: rotateX(21deg);
transform-origin: 100% 50%;
text-align: center;
}
.text-oops h2 {
color: #ffffff33;
font-size: 14vmin;
width: 50%;
float: left;
transform: rotateY(-60deg) scaleX(1.5);
transform-origin: 100% 50%;
margin: -5vmin 0 0 -5vmin;
text-shadow: 0 2px 1px #ffb394, -1px 1px 2px #ffde9480, -1px -1px 2px #af4621, -2px -2px 2px #af4621, -3px -3px 2px #af4621,
-4px -4px 2px #af4621, -5px -5px 2px #af4621, -6px -6px 2px #af4621, -7px -7px 2px #af4621, -8px -8px 2px #af4621,
-9px -9px 2px #af4621, -10px -10px 2px #af4621, -11px -11px 2px #af4621, -12px -12px 2px #af4621, -13px -13px 2px #af4621,
-14px -14px 2px #af4621, -15px -15px 2px #af4621, -16px -16px 2px #712a10, -10px -10px 8px #712a10, -6px -15px 13px #712a10;
}
.text-oops p {
color: #ffffff66;
font-size: 5vmin;
width: 50%;
float: right;
transform: rotateY(60deg) scaleX(1.5);
transform-origin: 0% 50%;
margin: -4vmin -2vmin 0 0;
max-width: 50vmin;
text-shadow: 0 2px 1px #ffb394, -1px 1px 2px #ffde9480, 1px -1px 2px #af4621, 2px -2px 2px #af4621, 3px -3px 2px #af4621,
4px -4px 2px #af4621, 5px -5px 2px #af4621, 6px -6px 2px #af4621, 7px -7px 2px #af4621, 8px -8px 2px #af4621,
6px -6px 7px #712a10;
}
.plane-line {
display: flex;
width: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
}
.basement-area {
position: relative;
height: 20vmin;
width: 28vmin;
background: radial-gradient(circle at 50% 0%, #e2683b, transparent 45%), radial-gradient(circle at 30% 100%, #431606, transparent 77%),
radial-gradient(circle at 20% 100%, #e26233, #e2683b, #e2683b);
border-radius: 50%;
box-shadow: 0 -2px 4px -2px #ffffffcc inset, 0 2px 6px -4px #000000;
margin-top: 30vmin;
overflow: hidden;
}
.ladder, .ladder-shadow {
--shadow: #00000080;
position: absolute;
top: 0;
height: 30vmin;
width: 10vmin;
background: linear-gradient(180deg, transparent 33%, var(--shadow), #000000),
linear-gradient(90deg, #cec3b9 0 1.2vmin, #b3aba2 0 1.5vmin, transparent 0 100%),
linear-gradient(90deg, #cec3b9 0 1.2vmin, #b3aba2 0 1.75vmin, transparent 0 calc(100% - 1.75vmin)),
repeating-linear-gradient(0deg, #cec3b9 0 1.2vmin, #e7dbcf 0 1.75vmin, transparent 0 6.75vmin),
linear-gradient(90deg, #cec3b9 0 1.2vmin, #b3aba2 0 1.75vmin, transparent 0 calc(100% - 1.75vmin));
background-position: 0 0, 0 0, 8.25vmin 0, 0 -3.25vmin, 0 0;
background-size: 100% 100%;
background-repeat: no-repeat;
transform: rotate3d(4, 1, 1, 45deg) skew(0deg, 20deg);
margin-left: 14vmin;
}
.ladder-shadow {
--shadow: transparent;
transform: rotate3d(2, 1, 1, 45deg) rotate(-10deg) translate(1.15vmin, 1.9vmin) skew(0deg, 20deg);
filter: invert(1) blur(1px) opacity(0.25) contrast(5);
}
.ladder::before, .ladder::after {
content: "";
position: absolute;
top: 1px;
height: 1.75vmin;
width: 0.85vmin;
background: linear-gradient(210deg, transparent 0.4vmin, #e7dbcf calc(0.35vmin + 1px) 1.45vmin, #b3aba2 calc(1.4vmin + 1px) 100%);
transform: rotate(-90deg);
transform-origin: 0 1%;
}
.ladder::after {
left: 8.25vmin;
}
.number-four {
position: absolute;
color: #f67a4d;
transform: rotate(22deg) scale(0.8, 0.85) rotateX(40deg) rotateY(-10deg) rotateZ(-5deg);
font-family: Arial, Helvetica, sans-serif;
font-size: 45vmin;
font-weight: bold;
text-shadow: 0 2px 1px #ffb394, -1px 1px 2px #ffde9480, 1px 2px 2px #e26233, 2px 4px 2px #e26233, 4px 6px 2px #e26233,
5px 8px 2px #e26233, 6px 10px 2px #e26233, 7px 12px 2px #e26233, 8px 14px 2px #e26233, 9px 16px 2px #e26233,
10px 18px 2px #e26233, 11px 20px 3px #e26233, 12px 22px 3px #e26233, 13px 22px 10px #712a10, 18px 14px 15px #712a10;
margin: 27vmin 0 0 -58vmin;
filter: drop-shadow(10px -4px 10px #af4621);
}
.number-four+.number-four {
transform: scale(0.95, 0.75) rotateX(5deg) rotateY(35deg) rotateZ(30deg) translateZ(18vmin);
text-shadow: 1px 0 2px #ffb394, 3px 0 2px #ffde9480, 1px 0 0 #e26233, 2px 0 2px #e26233, 4px 0 2px #e26233,
5px 0 2px #e26233, 6px 0 2px #e26233, 7px 0 2px #e26233, 8px 0 2px #e26233, 9px 0 2px #e26233, 10px 0 2px #e26233,
11px 0 3px #e26233, 12px 0 3px #e26233, 20px 0 3px #e26233, 13px 0 5px #712a10, 18px -6px 15px #712a10;
margin: 15vmin 0 0 43vmin;
}
.number-four+.number-four::before, .number-four+.number-four::after {
content: "4";
position: absolute;
color: #712a10;
transform: rotateX(27deg) rotate(-20deg) translate(-0.5vmin, 0.5vmin) skew(0deg, 20deg);
transform-origin: 60% 0%;
transform-style: preserve-3d;
opacity: 0.25;
clip-path: polygon(0 0, 100% 0, 100% 50%, 0 46%, 0 0);
text-shadow: none;
filter: blur(5px);
z-index: -1;
}
.number-four+.number-four::after {
transform: rotateX(12deg) rotate(-13deg) translate(-27.5vmin, -5.5vmin) skew(-32deg, 6deg) scaleX(1.1);
transform-origin: 50% 100%;
clip-path: polygon(0 39.75%, 100% 49.25%, 100% 100%, 0 100%, 0 50%);
}
.btn-home {
position: absolute;
bottom: -15vmin;
transform: rotateX(15deg);
transform-origin: 50% 0%;
}
.btn-home a {
position: relative;
top: 0;
background: #ff8052;
color: #ffffffe6;
font-size: 3vmin;
border-radius: 0.2vmin;
padding: 1.5vmin 4.5vmin;
text-decoration: none;
text-shadow: 0 -2px 2px #ff9671, 0 1px 3px #712a10;
box-shadow: 1px 0 1px #ffb394, 0 2px 2px #ffde9480, 0 1px 2px #e26233, 0 4px 2px #e26233, 0 6px 2px #e26233,
0 8px 2px #e26233, 0 10px 2px #e26233, 0 12px 2px #e26233, 0 14px 2px #e26233, 0 16px 2px #e26233,
0 18px 2px #e26233, 0 20px 3px #e26233, 2px 22px 3px #e26233, 0 23px 3px #712a10, 0 3px 15px #712a10;
transition: all 0.25s linear;
}
.btn-home a:hover {
top: 16px;
color: #712a10;
box-shadow: 1px 0 1px #ffde9480, 0 2px 2px #ffde9480, 0 1px 2px #e26233, 0 1px 2px #e26233, 0 2px 2px #e26233,
0 2px 2px #e26233, 0 2px 2px #e26233, 0 2px 2px #e26233, 0 2px 3px #e26233, 0 2px 3px #e26233,
0 2px 2px #e26233, 0 2px 3px #e26233, 2px 2px 3px #e26233, 0 4px 3px #712a10, 2px 5px 6px #712a10;
}
.btn-home::after {
content: "";
position: absolute;
top: 0;
left: 0;
height: 300%;
width: 100%;
background: #af4621;
transform: translateZ(-2vmin) skew(-10deg, 0deg) translateY(-4.5vmin) translateX(1vmin);
opacity: 0.25;
filter: blur(5px);
transition: all 0.25s ease;
}
.btn-home:hover::after {
top: 0;
left: 0;
height: 20%;
width: 100%;
background: transparent;
transform: translateZ(-2vmin) skew(-0deg, 0deg) translateY(0vmin) translateX(0vmin);
}
@media screen and (orientation: portrait) {
.text-oops p {
line-height: 10vmin;
font-size: 6.5vmin;
}
}
Thanks for visiting