DEV Community

ANDYSAY
ANDYSAY

Posted on

🧠 Fractal Grid UI: A Recursive Layout You Can Click Into

Image description

🔮 What if layouts weren’t flat… but fractal?
We’re all used to layout systems like flexbox, grid, and cards. But what if you could build a UI that expands like a living structure?
A system where every block contains a new layer of itself — infinitely?

Welcome to the Fractal Grid UI.

🧬 Concept
The idea is simple but powerful:

A 3×3 grid of blocks

The center is always empty

Clicking any of the outer 8 blocks recursively spawns another 3×3 grid

This can go as deep as the user wants

All done with pure HTML, CSS, and a little JS

🧠 Why it’s cool
📦 Self-similar — each cell
can contain more cells

🔍 Zoomable — you can explore depth visually

📱 Responsive — adapts well to mobile

🧩 Modular thinking — perfect for data structures, AI systems, or creative tools

🌀 Satisfying UX — smooth, recursive animation as you dive deeper

code pen

Top comments (1)

Collapse
 
latz profile image
Latz

Nice idea that looks like fun. It could be used for a Wiki UI, not exactly like the demo but with automatically zoom. I'll keep this in mind.