# Changing background color on hover

**URL:** <https://forum.builder.io/t/changing-background-color-on-hover/322>\
**Category:** General\
**Created:** [December 10, 2020, 10:00pm UTC](https://forum.builder.io/t/changing-background-color-on-hover/322 "2020-12-10T22:00:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maddy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/maddy/32/11_2.png) [@maddy](https://forum.builder.io/u/maddy)\
**Post date:** [December 10, 2020, 10:00pm UTC](https://forum.builder.io/t/changing-background-color-on-hover/322/1 "2020-12-10T22:00:51Z")

</div>

This guide will go over how to create an on hover animation that changes background color. In this example we will be adding this to a button, but this animation can be applied to any blocks:

1. Select the button and apply a background color in the styles tab.
2. Navigate to the animate tab and select “+ new animation”.
3. Choose “hover” as the trigger and then select “edit”.

 ![Screen Shot 2020-12-10 at 4.55.53 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/f3c29036110919325741af76c8cb35ecbdb23c65.png)

1. ​Change the background color and click “done”.

 ![Dec-10-2020 16-59-47](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/1c8edab50bb83ddeb513d651a4b60e7d0fd5147a.gif)
