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

What is the answer for CSS 3d transform property?


<!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 /
}

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

translate3d function by 75pixels.
we will have to provide the perspective() function too. Add it before the translate3d function, with a value of 200pixels.
by

3 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;
transform: perspective(200px) translate3d(0, 0, 75px);


}

</style>
</head>
<body>
<div class="translate-me">Transform me!</div>
</body>
</html>
rohinikumar
Try this One
transform: perspective(200px) translate3d(0, 0, 75px);
rohinikumar
Try this One
transform: perspective(200px) translate3d(0, 0, 75px);

Login / Signup to Answer the Question.