Time Synced Themes

Themes that follow the sun

I’ve always been fascinated by how coding can reflect the real world, so I put together a simple personal project that ties the beauty of the sun’s cycle to your browser. This little experiment uses Three.js to render a dynamic environment while calculating sunrise and sunset times for Istanbul.

Thanks to the SunCalc library, the scene follows the sun over Istanbul, switching between day and night as it rises and sets.

Cloud animations build on top of a demo by Mr.doob, whose work inspired me to dive deeper into Three.js.

Type
Experiment
Role
Design & development
Stack
Three.js, SunCalc, GSAP
webpack
Year
2022