Best method of showcasing UI interaction / animations for case studies or portfolios?

I’m building a site full of case studies and I want the ability to show UI animations of how the user interacts with the interface. My app is a browser based app.
Some simple things I’d like to show:
a user collapsing and …