DEV Community

Robertino
Robertino

Posted on

🖥 Get Better Angular UX Using 4 Animation Techniques

⌨️ Improve the User Experience (UX) of an e-commerce application by implementing animations utilizing Angular animations, CSS animations, and Web Animation APIs.


Developers can use animations in meaningful and non-distracting ways to significantly improve their application's user experience (UX). This blog post discusses four effective techniques to animate your application's user interface, covering popular use cases. You'll learn how to transform bland experiences into memorable ones for your users.

Getting Started Quickly

I created a demo application to help you focus on adding animations to Angular. You'll add animations to a starter app as you progress through this tutorial. The starter application uses Tailwind to take care of its style and layout, but none of the animations discussed here are dependent on it.

Follow this tutorial without cloning any repo, right in the browser using Stackblitz or CodeSandbox.

If you prefer to work locally in your IDE, clone the demo app and check out its starter branch:

git clone -b starter git@github.com:auth0-blog/angular-animations-storefront.git
Enter fullscreen mode Exit fullscreen mode

Once you clone the repo, make angular-animations-storefront your current directory:

cd angular-animations-storefront
Enter fullscreen mode Exit fullscreen mode

Install the project's dependencies:

npm i
Enter fullscreen mode Exit fullscreen mode

Run the project locally:

npm run start
Enter fullscreen mode Exit fullscreen mode

Brief Overview of Angular Animations

Angular comes with a powerful animation module that lets you quickly add motion to your application: BrowserAnimationsModule. Under the hood, this module uses the Web Animations API (WAAPI) to create motion and interactivity. Whenever WAAPI isn't available, BrowserAnimationsModule falls back to using CSS keyframes. Angular animations give you the option to use their abstraction layer to animate any properties that the web considers animatable such as positions, sizes, colors, and many more.

Read more...

Top comments (0)