Change colour with an interaction

I’d find it super useful to be able to change the colour of an element (incl text background) on an interaction.

example use case: change colour of text box on hover

I know this can be done with the old Animation functionality, but I also know this is being phased out and I need to future proof.