Adding Animation

Learn how to animate an event in Marionette and add a fading effect.

Animating the removed ItemView

When a model is removed from the collection, its child view is automatically closed and removed from the DOM for us. Instead of having it disappear suddenly, let’s have it gently fade out by animating it with jQuery. To achieve this, we simply need to leverage Marionette’s lifecycle events. Here’s how we do it:

Get hands-on with 1200+ tech skills courses.