- Created `openspec-ff-change` skill for fast-forward artifact creation. - Introduced `openspec-new-change` skill for structured change creation. - Developed `openspec-onboard` skill for guided onboarding through OpenSpec workflow. - Added `openspec-sync-specs` skill for syncing delta specs to main specs. - Implemented `openspec-verify-change` skill for verifying implementation against change artifacts. - Updated `.gitignore` to exclude OpenSpec generated files. - Added `skills-lock.json` to manage skill dependencies.
1.6 KiB
1.6 KiB
name, description
| name | description |
|---|---|
| transform-rotate | Rotating elements in 2D and 3D space with degree values and custom rotations |
Rotate
Utilities for rotating elements.
Usage
2D rotation
Use rotate-<number> to rotate by degrees:
<div class="rotate-45">45 degrees</div>
<div class="rotate-90">90 degrees</div>
<div class="-rotate-45">-45 degrees (counterclockwise)</div>
3D rotation
Use rotate-x-<number>, rotate-y-<number>, rotate-z-<number> for 3D rotation:
<div class="rotate-x-50 rotate-z-45">3D rotation</div>
<div class="rotate-y-25 rotate-z-30">Combined 3D rotation</div>
Common rotations
<div class="rotate-90">Quarter turn</div>
<div class="rotate-180">Half turn</div>
<div class="rotate-270">Three-quarter turn</div>
Custom values
Use arbitrary values for custom rotations:
<div class="rotate-[3.142rad]">Custom radian rotation</div>
<div class="rotate-[45deg]">Explicit degree rotation</div>
Removing rotation
Use rotate-none to remove rotation:
<div class="rotate-45 md:rotate-none">Rotated on mobile only</div>
Key Points
rotate-*rotates in 2D plane (around z-axis)rotate-x-*rotates around x-axis (3D)rotate-y-*rotates around y-axis (3D)rotate-z-*rotates around z-axis (3D, same asrotate-*)- Negative values rotate counterclockwise:
-rotate-45 - Common values:
45,90,180,270degrees - Can combine multiple axes:
rotate-x-50 rotate-y-30 rotate-z-45 - Use
rotate-noneto remove all rotations