0.7.0 • Published 5 years ago

knuff v0.7.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

Knuff

npm version

pushstate and popstate-events, but without the hassle.

Getting started

Knuff is available via npm and yarn, but it's just as easy to download the script and including it in your document.

However you'd like to install the script, you'll need to add the [data-knuff]-attribute to your anchors and anchor-like elements; the attribute's value should be a URL – or part of one – but if left empty, Knuff will try to find a [href]-attribute. If neither of these attributes have values, Knuff will leave the element alone. Easy peasy! :sunglasses:

Older browsers

Knuff uses a few things introduced in later versions of ECMAScript, so if you're unsure of what may or may not be supported, I'd recommend using the script compiled by Babel. :v:

To-do

  • Docs & demo

License

MIT Licensed. You're free to do pretty much whatever you'd like with Knuff. Enjoy! :blush:

0.7.0

5 years ago

0.6.0

5 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago