Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created January 30, 2018 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/5898ab73e6cc309c58348f569fbf2839 to your computer and use it in GitHub Desktop.
Save matthieu-D/5898ab73e6cc309c58348f569fbf2839 to your computer and use it in GitHub Desktop.
export default {
bind: function(el, binding, vnode) {
const display = binding.value.display ? 'block': 'none';
const delay = binding.value.delay;
setTimeout(() => el.style.display = display, delay);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment