Help - button changes color

does anyone know how to create a button that changes color when pressed, with animated effect filling the color from left to right.

Are you using Kodular or Thunkable Classic? You have posted the same question on that community and the answer may vary.

i am using Kodular