Skip to content

Commit

Permalink
fix: styling of text rotate animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritika-Agrawal811 committed Feb 28, 2024
1 parent 0f5f4fd commit 0b7acdf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Text Animations/Text_Rotate_Animation/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,17 @@ body {

.text-rotate-container {
position: relative;
width: 200px;
height: 50px;
width: 12em;
height: 3.5em;
perspective: 100px;
}

h1 {
position: absolute;
width: 100%;
height: 100%;
inset: 0;
font-size: 3rem;
font-family: sans-serif;
text-align: center;
background-color: inherit;
backface-visibility: hidden;
}

Expand Down

0 comments on commit 0b7acdf

Please sign in to comment.