Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

LEVEL 13 > LESSON 4 CSS 3D Transform


<!DOCTYPE html>
<html>
<head>
<title>CSS transform property</title>
<style>
div{
width: 150px;
height: 80px;
background-color: #4535aa;
color: white;
}
.translate-me
{
transform-origin: 0 0;
transform: perspective(200px) translate3d(0px, 0px, 75px);


}

</style>
</head>
<body>
<div class="translate-me">Transform me!</div>
</body>
</html>

I used translate3d property with z-axis 75px and perspective of 200px but its not submitting can anyone help me??
by

2 Answers

kshitijrana14
Try this one

<!DOCTYPE html>
<html>
<head>
<title>CSS transform property</title>
<style>
div{
width: 150px;
height: 80px;
background-color: #4535aa;
color: white;
}
.translate-me
{
transform-origin: 0 0;
/ Apply transform property here /
transform:perspective(200px) translate3d(0,0,75px);

}

</style>
</head>
<body>
<div class="translate-me">Transform me!</div>
</body>
</html>
Sumitlymrd
i tried the same code but when i copy it from it here it worked but it took me 2 days to find solution, even my code was not wrong, its the problem with this website only.

Login / Signup to Answer the Question.