0

How to change the div shape using css or jquery like below?

enter image description here

I have some content inside the div. Eg. Lorem ipsum... But I want the shape like this using css. Any possible way?

#shape {
-moz-transform: skew(26deg, 0deg);
-webkit-transform: skew(26deg, 0deg);
-o-transform: skew(26deg, 0deg);
-ms-transform: skew(26deg, 0deg);
transform: skew(26deg, 0deg);
}
<div id="shape">Lorem ipsum...</div>
justDan
  • 2,302
  • 5
  • 20
  • 29
Shakthi
  • 826
  • 3
  • 15
  • 33

1 Answers1

0

I'm able to get the output. Thanks to all..

#shape {     
  margin-top: 50px;
  width: 150px;
  height: 100px;
  background-color: red;
  transform: perspective(100px) rotateY(320deg); 
}

 

<div id="shape">Lorem ipsum...</div>
Shakthi
  • 826
  • 3
  • 15
  • 33