Skip to content

cdvillard/v-honk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦆 V-Honk

Introducing a little chaos to Vue.js.

v-honk is a custom directive for Vue that adds a delightful little "honk" to anything.

Installation

  npm install v-honk

Using it in a component

  <template>
    <div>
      <a href="https://honkify.netlify.com" v-honk>This will go to Honkify.js.</a>
      <a href="https://honkify.netlify.com" v-honk:block>This won't let you through.</a>
      <p v-honk>This won't go anywhere.</p>
    </div>
  </template>

  <script>
  import honk from "v-honk";

  export default {
    directives: {
      honk
    }
  };
  </script>

If the target is an anchor tag, v-honk simply honks and lets the user through after a timeout. However, as geese do, sometimes they want to block your path. Adding an argument of block will stop a link from working while still honking at them.

💚 Inspired by the anarchy of Honkify.js and Jason Lengstof.

Plans for v-honk:

  • Create a global property
  • Make sure target is an actual link
  • World dominiation

About

Introducing some chaos to Vue.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published