user profile image

A demo to show how to use Vue.js custom directives to create reusable animation/cohesive animation on a scrolling site. This example is used for a cookbook recipe


  1. cool, I've used a directive to solve the problem for SO at

    any thoughts on the listeners hanging around once they've done their job?

  2. Hi @scorch! I actually remove the listener in my directives. That's what the end argument does :)

  3. ooops, was late at night and wasn't thinking. The issue I was concerned about is unloading the component without clearing listeners. I didn't test it, but thought that they could be kept around.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.