Today is the 8th, and although I am a day late, weāre rolling into Weekly Challenge #6 ā something a little trippy, a little braināmelting, and very fun to build.
This week, your mission is to create a CSSāonly optical illusion.
No JavaScript.
No canvas.
Just pure CSS wizardry.
Think of those illusions where your brain goes:
āWait⦠is that moving?
Is that rotating?
Is that⦠even possible?ā
Yeah. That.
The Mission
Build an illusion that:
- looks impossible
- moves or shifts even when itās not actually moving
- tricks the eye using patterns, gradients, shapes, or perspective
- is powered entirely by CSS
It can be subtle or chaotic ā your choice.
The Rules
- No JavaScript
- Must visually ātrickā the viewer
- Must use at least one of the following:
- repeating patterns
- gradients
- perspective transforms
- animation timing illusions
- Must be interactive or animated
- Must be shareable in a CodePen or GitHub link
The Goal
Make people stare at it for 10 seconds and go:
āā¦bro what.ā
If someone questions reality for even a moment, youāve succeeded.
Bonus (if you wanna go wild)
- Make the illusion change on hover
- Add a theme (retro, neon, sciāfi, geometric, etc.)
- Use only one HTML element
- Make it look like itās rotating even though itās not
Hints (only 3)
š¹ 1. Repeating gradients are your best friend
CSS gradients can create wild illusions when repeated or angled just right.
š¹ 2. Slow animations feel more ārealā
Try easing curves like:
animation-timing-function: cubic-bezier(.25, .1, .25, 1);
It makes movement feel natural ā which makes the illusion stronger.
š¹ 3. Perspective + transform = instant mind trick
Even a simple:
transform: perspective(400px) rotateX(20deg);
can make flat shapes look 3D.
How to Enter
Just drop your CodePen or GitHub link in the comments.
Thatās literally it.
No deadlines, no pressure ā just build something cool and share it.
Alright, thatās the challenge
Go make something that breaks peopleās brains (in a good way).
Make it weird. Make it trippy. Make it yours.
And if you want a shoutout in next weekās challengeā¦
you know what to do.
Top comments (0)