Outline draw
The cup outline follows scroll progress. Coffee fill starts slightly later, creating a two-phase animation.
Scroll this panel to reveal and animate the cup
Scroll 0% · Outline 0% · Fill 0%
Scroll-driven CTA
This preview simulates a long page so you can test scroll-linked animation — outline draw, coffee fill, tooltip behavior, and visibility rules — before adding the button to your own site.
The cup outline follows scroll progress. Coffee fill starts slightly later, creating a two-phase animation.
Fixed mode pins the cup to a viewport corner. Flow mode mounts it inside a page element — the Blog sidebar preset places it in the theme card below. Active anchors show a dashed outline.
Pick a tooltip side or leave it on auto. The same side is used on desktop and mobile — flow mode defaults to the right; fixed mode picks left/right from corner.
Use theme presets or adjust light and dark palette tokens, then toggle the dark preview.
Enable reverse mode to start with a full cup at the top and empty it as you scroll down. The cup hides again at the bottom.
Install & use
pnpm add buy-me-a-coffee-cta
End of preview
The cup should be full and the label visible. Click the cup to open the Buy Me a Coffee profile in a new tab.
Scroll down to reveal the cup ↓