Animations in the digital sphere generate attention, and at the same time, the playful aspect of these elements keeps the user happy, which increases the time spent on the website/web app/app. A classic movement could be a hover effect on a button. But while implementing animations to your website or app, keep in mind: Movement should encourage the user in his or her behavior by giving positive feedback for an action he/she has taken. The user should get the feeling of being able to contribute actively.
Make sure to get a UX review after/while implementing animations into your digital app.