i am wondering how to animate a button in, an example is snapchat. When the user enters their credentials in to both fields, as in when they are not empty, they animate the login button in:

![enter image description here](https://i.stack.imgur.com/IXeHK.png)

Any suggestions on how this is done?