English, asked by venkateshmurthyvenky, 8 months ago

When our
teacher aiskind I Shelt correctly, buat.
my friend​

Answers

Answered by alia1010100
0

Answer:

<!DOCTYPE html>

<html>

<head>

<title>Create 3D Flip Cube</title>

<link rel="stylesheet" href="style.css">

</head>

<body>

<div id="container">

<div id="box">

<div id="front"><br>FRONT</div>

<div id="back"><br>BACK</div>

<div id="left"><br>LEFT</div>

<div id="right"><br>RIGHT</div>

<div id="top"><br>TOP</div>

<div id="bottom"><br>BOTTOM</div>

</div>

</body>

</html>

container

{

width: 400px;

height: 400px;

margin: 200px auto;

perspective: 800px;

}

body

{

background-color: grey;

}

#box

{

width: 400px;

transform-style: preserve-3d;

color: orange;

font: 80px impact;

text-align: center;

animation: rotate 15s linear infinite;

}

#box div

{

position: absolute;

width: 400px;

height: 400px;

opacity: .8;

}

#front

{

transform: translateZ(200px);

background-color: #1f122c;

}

#back

{

transform:rotateY(180deg) translateZ(200px);

background-color: #1f122c;

}

#left

{

transform:rotateY(-90deg) translateX(-200px);

background-color: #1f122c;

transform-origin: left;

}

#right

{

transform:rotateY(90deg) translateX(200px);

background-color: #1f122c;

transform-origin: right;

}

#top

{

transform:rotateX(-90deg) translateY(-200px);

background-color: #1f122c;

transform-origin: top;

}

#bottom

{

transform:rotateX(90deg) translateY(200px);

background-color: #1f122c;

transform-origin: bottom;

}

@keyframes rotate{

0%{

transform:rotateY(0deg);

}

100%{

transform: rotateY(360deg);

}

Similar questions