To create a Webflow button with a white stroke that fills left to right with color on hover, you can use interaction-based animations or CSS transitions with easing. Below is a step-by-step guide using Webflow's Interactions panel.
Fill Overlay
.Go to Interactions Panel and create a new Mouse Hover animation:
Select the button, then go to Interactions (Lightning Bolt Icon).
Choose Element Trigger > Hover.
Click "Start an Animation" and select "New Timed Animation".
Hover In Animation:
Select the Fill Overlay
div.
Click Size and set Width: 0% → 100% (ease in-out, 300ms duration).
Change animation timing to ease-out for a smoother effect.
Hover Out Animation:
Select the Fill Overlay
div.
Click Size and set Width: 100% → 0% (ease in-out, 300ms duration).
This method creates a button with a white stroke that fills left to right on hover using a div overlay and timed transitions. The animation is controlled via Webflow's Mouse Hover Interaction, with the overlay expanding and contracting smoothly.