Color Transition

You must Login before you can answer or comment on any questions.

Hello all,

I wanted to make an app where the background screen color changes from red to blue when the user clicks a button; however, the transition between the color change shouldn't be abrupt, as in it should start at red, then slowly fade into blue. I am unable to do this with the animate method. Does anyone know a way?

— asked 9 months ago by Sahil Khan
1 Comment
  • when you press the button sets the background of the background of the window so

    view.animate( { backgroundColor:'red', duration:2000}); });

    — commented 9 months ago by nicolò monili

Your Answer

Think you can help? Login to answer this question!