Kanwar Pal Singh
All notes

Note

A page that runs from morning to night

The day arc, and keeping text readable through it.

The home page is one working day. Each section has a time: the hero is morning, the work is noon, About is afternoon, Experience and Skills are golden hour, Ask Kanwar is dusk, the game is night, and Contact is the next morning.

As you scroll, the background blends from one time to the next, and the 3D cube is lit by the same light: warm in the afternoon, cool at night.

The tricky part is text. Dark text works on a light background and light text on a dark one, but between them the background passes through mid-tones where neither set reads well. The page measures each blend as it happens, and on those in-between colours it switches all text to pure black or pure white, whichever is clearer. That keeps contrast at 4.5:1 or better, the WCAG AA standard, the whole way down.

The changes between light and dark happen quickly, in the empty space between sections. Colour isn’t motion, so the day still turns when animation is switched off.

See it on the home page