CSS Translate Test

Size
2,796 Kb
Views
24,288

How do I make an css translate test?

What is a css translate test? How do you make a css translate test? This script and codes were developed by Truman Heberle on 30 September 2022, Friday.

CSS Translate Test Previews

CSS Translate Test - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Translate Test</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="origin" class="grass cube"> <div class="face top"></div> <div class="face bottom"></div> <div class="face front"></div> <div class="face back"></div> <div class="face left"></div> <div class="face right"></div>
</div>
</body>
</html>

CSS Translate Test - Script Codes CSS Codes

body { background: linear-gradient(to bottom, #cee7d4 0%, #f5f4c9 100%); background-repeat: no-repeat; background-attachment: fixed; overflow: hidden; perspective: 1000px;
}
.cube { position: relative; margin: calc(50vh - 100px/2) auto; width: 100px; height: 100px; transform-style: preserve-3d; transform: rotateX(-15deg) rotateY(45deg); transition: all .75s ease;
}
.face { width: 100px; height: 100px; position: absolute; box-sizing: border-box;
}
.face.top { transform: rotateY(180deg) rotateX(90deg) translate3d(0, 0, 50px);
}
.face.bottom { transform: rotateY(180deg) rotateX(90deg) translate3d(0, 0, -50px);
}
.face.front { transform: translate3d(0, 0, 50px);
}
.face.back { transform: translate3d(0, 0, -50px);
}
.face.left { transform: rotateY(90deg) translate3d(0, 0, -50px);
}
.face.right { transform: rotateY(90deg) translate3d(0, 0, 50px);
}
.grass .back { background: radial-gradient(#00ffff, #800080); background-size: 100% 100%;
}
.grass .front { background: radial-gradient(#00ffff, #800080); background-size: 100% 100%;
}
.grass .left { background: radial-gradient(#00ffff, #800080); background-size: 100% 100%;
}
.grass .right { background: radial-gradient(#00ffff, #800080); background-size: 100% 100%;
}
.grass .top { background: radial-gradient(#00ffff, #800080); background-size: 100% 100%;
}
.grass .bottom { background: radial-gradient(#00ffff, #800080); background-size: 100% 100%; text-align: center;
}
#origin { -webkit-animation-name: spin; -webkit-animation-duration: 5s; animation-name: spin; animation-duration: 5s; animation-iteration-count: infinite; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; animation-timing-function: linear;
}
@keyframes spin { 0% { transform: rotateX(-3deg) rotateY(0deg) rotateZ(0deg); } 12% { transform: rotateX(-10deg) rotateY(12deg) rotateZ(5deg); } 25% { transform: rotateX(25deg) rotateY(123deg) rotateZ(15deg); } 37% { transform: rotateX(7deg) rotateY(72deg) rotateZ(-32deg); } 50% { transform: rotateX(-10deg) rotateY(180deg) rotateZ(-123deg); } 62% { transform: rotateX(-3deg) rotateY(87deg) rotateZ(-32deg); } 75% { transform: rotateX(-12deg) rotateY(-23deg) rotateZ(72deg); } 87% { transform: rotateX(-32deg) rotateY(-12deg) rotateZ(23deg); } 100% { transform: rotateX(-3deg) rotateY(0deg) rotateZ(0deg); }
}
CSS Translate Test - Script Codes
CSS Translate Test - Script Codes
Home Page Home
Developer Truman Heberle
Username trumanheberle
Uploaded September 30, 2022
Rating 3
Size 2,796 Kb
Views 24,288
Do you need developer help for CSS Translate Test?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Truman Heberle (trumanheberle) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!