freecoding.school100% FREE · NO SIGNUP
Neon DistrictISSUE #1 of 50

transforms · translate · rotate · scale · skew

PrismaVSJank the Janitor
Prisma saystransform moves, rotates, scales, and skews elements without disturbing layout.

transform applies translate(), rotate(), scale(), skew() — visually only, so surrounding layout doesn't shift. It's GPU-accelerated and cheap to animate. transform-origin sets the pivot. Chain functions in one declaration; they apply right-to-left.

Power-ups you unlock

Jank the Janitor attacks — common mistakes

Boss battleRotate a card 5deg and scale it up on hover.

Example code

<!doctype html><html><head><meta charset="utf-8">
<style>.b{width:120px;height:80px;background:#b388ff;transition:transform .2s}.b:hover{transform:rotate(5deg) scale(1.1)}</style></head><body style="background:#06040d;padding:30px"><div class="b"></div></body></html>
▶ Open the interactive comic issue
3d Transforms · Perspective · Rotate3d ›