Animate gradient background

It would be great if we could animate background colors. I was making a toast message alert and wanted to animate the background (linear gradient) like a progress bar where it will disappear after 5 seconds.
image

You can already do it! Just change the position of the gradient bar on the canvas for your variant.