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

filter · blur · brightness · contrast

PrismaVSJank the Janitor
Prisma saysfilter applies graphic effects — blur, brightness, contrast, grayscale, drop-shadow — to an element.

filter runs image-style effects on any element: blur(4px), brightness(1.2), contrast(), grayscale(), hue-rotate(), drop-shadow() (which follows the alpha shape, unlike box-shadow). Chain multiple in one declaration. GPU-accelerated and animatable.

Power-ups you unlock

Jank the Janitor attacks — common mistakes

Boss battleGrayscale an image and restore full color on hover with a transition.

Example code

<!doctype html><html><head><meta charset="utf-8">
<style>img{filter:grayscale(1);transition:filter .3s}img:hover{filter:grayscale(0)}</style></head><body style="background:#06040d;padding:20px"><img src="https://via.placeholder.com/200x120" alt=""></body></html>
▶ Open the interactive comic issue
‹ Min() · Max() · Clamp() · Responsive MathBackdrop-Filter · Frosted Glass ›