Reacting face
An illustrated face morphs continuously from glum to delighted as the value rises. Emoji skin included.
Illustrated · Original concept
The sun is the thumb. Drag it across the sky and the whole landscape follows; past the horizon it becomes the moon.
Drag the sun across the sky.
Tab to the slider, then ← → to step, PgUp PgDn to jump, Home End for the ends.
A native range input is the real control: it owns the value, the keyboard and what screen readers hear. Everything you see is drawn from it.
No libraries, just HTML, CSS and JavaScript
The concept
The sun is the thumb. Drag it across the sky and the whole landscape changes; past the horizon it becomes the moon. The value is a time of day.
5 real-world places this slider fits, from product UIs to marketing pages.
Choosing a delivery, appointment or check-in time.
Setting when lights, blinds or routines switch on.
Showing a destination at sunrise, noon and night.
Scrubbing through the day's forecast.
Showing how sunlight moves through a property.
Implementation
Two files and a small shared scaffold. Copy them, or take the whole package.
Loading slider.js…
Work with Codevibe
If this design fits your product, we are happy to adapt it to your brand, or design something new that feels just as good to use. The same team that made this library builds websites, apps and product UIs that people enjoy using.
Just want this slider? Download the code free, no form needed.
An illustrated face morphs continuously from glum to delighted as the value rises. Emoji skin included.
The slider is the timeline of a Lottie animation: a paper plane folds itself as you drag.
The handle is a seed that morphs into a sprout, a flower and a fruit as the value grows.
Tell us what you are working on. We will respond within 12 hours on working days with an honest assessment and a recommended path forward.