<style> tag to animate gradient movement using background-position on your button classes. transition: background-position and test after publishing to confirm the animation works.To create a timed transition for gradient background changes on your navigation and sidebar buttons in Webflow, you’ll need to use custom CSS because Webflow’s built-in style panel doesn’t support animating CSS gradients directly.
<style> tag with custom CSS that targets your button class names..my-button with your actual class name):
```css
<style>
.my-button {
background: linear-gradient(90deg, #6a11cb, #2575fc);
background-size: 200% 200%;
transition: background-position 1.5s ease;
}
.my-button:hover {
background-position: right center;
}
</style>
```
background-position, since actual gradient transitions aren't supported by browsers.
nav-link or sidebar-btn).
transition to “All Properties” or specifically to background-position if editing through custom code.
Webflow does not natively support gradient transitions, so you must use custom CSS with background-position animation to simulate it. Combine this with Webflow Styles for best control and cross-browser results.