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

Level 13 lesson 4

i am trying this tranform: perspective(200px) translate3d(75px);
by

1 Answer

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>

Login / Signup to Answer the Question.