Skip to content
All Challenges
#61

Rotate 45deg

Medium
Category: Transitions & Animations

Rotate the diamond .diamond by 45 degrees using transform: rotate(45deg).

Target HTML in preview:
<div class="diamond" style="width: 40px; height: 40px; background: red;"></div>
Verification Criteria:
Set transform: rotate(45deg)
styles.css
Live Evaluation
Loading...
|
Live Browser Output
Sandboxed Preview