DEV3 Technologies home

Day/Night Landscape Switch: WebGL GLSL Sunset-to-Starry-Night Toggle (three.js, Tailwind, GSAP) — Animated UI Component…

A toggle whose track is a tiny landscape and whose page is a full-bleed GLSL shader world (three.js): the sun sinks behind ridges, the sky burns orange, stars and fireflies ignite, the moon rises and the lake mirrors it. Shooting stars, ripples, Tailwind v4 tokens, GSAP, reduced-motion.
by DEV3 TechnologiesVerified Author(0) 0 sales 0 viewsUpdated 16 Nov 2026

Day/Night Landscape Switch: WebGL GLSL Sunset-to-Starry-Night Toggle (three.js, Tailwind, GSAP)

A toggle whose track is a tiny landscape and whose page is a full-bleed GLSL shader world (three.js): the sun sinks behind ridges, the sky burns orange, stars and fireflies ignite, the moon rises and the lake mirrors it. Shooting stars, ripples, Tailwind v4 tokens, GSAP, reduced-motion.

What's included

  • One big component page with 2-3 variants and a light and a dark theme
  • Tailwind CSS v4 classes with a compiled tailwind.css included: no CDN, no build step
  • shadcn-style design tokens in CSS variables: re-theme by changing about six values
  • GSAP motion, with three.js where the component is marked 3D
  • Keyboard support, ARIA patterns and a prefers-reduced-motion fallback
  • A copy-the-markup section and a README

Licences

  • Regular, $5: one end product you or your client use.
  • Extended, $10: an end product that is sold, or a SaaS with paying users.

Try the live demo before you buy. Want the whole set? See DEV3 Motion Components Vol. 1 and Vol. 2.

Frequently asked questions

The complete source code (version 1.0.0) as a download from your account, with the setup and usage guides shown on this page. You can modify the code to suit your product.

Questions about this product (0)

Answers from the DEV3 team and the community.

Ask a question

No questions yet.

Wondering about setup, licensing or customisation? Ask, and the DEV3 team will help.

More from this author

View all

Related in Website Templates

View all