Skip to content

Rotate not actually 3D #165

Answered by sambauers
michaelmannucci asked this question in Q&A
Discussion options

You must be logged in to vote

You need to specify a perspective-* class on a parent element, for example:

<div class="perspective-250">
  <img src="/some-image.jpg" class="h-40 w-80 -rotate-y-45"
</div>

More examples of rotate are here: https://play.tailwindcss.com/m1NO5HFfGx

See the CSS docs on perspective here: https://developer.mozilla.org/en-US/docs/Web/CSS/perspective

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sambauers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #153 on November 11, 2023 06:31.