Range Slider Bubble
Dragging the slider pops up a value bubble that follows the handle
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A range slider: the part of the track already passed is filled; when the handle is held or dragged it grows slightly and a value bubble with a small triangle pops up right above it, following the handle horizontally and showing the number live; on release the bubble shrinks and fades. (CSS: style input[type=range]'s track and ::-webkit-slider-thumb; the track fill is a background linear-gradient using a percentage CSS variable; the bubble is an absolutely positioned output with left = handle width / 2 + (track width − handle width) × percentage, popping with scale and opacity)
When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.
How to use it
- Tap “Copy AI prompt”.
- Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
- The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.
More form & control effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →