attractivejs
v0.12.0
Published
A light-weight library for declarative DOM actions using data attributes
Readme
Attractive.js
A light-weight library for declarative DOM actions using data attributes.
Quick example:
<button data-action="toggleClass#active" data-target="content">Toggle</button>
<p id="content">This element should toggle the `active` class.</p>There are many more actions, like: addAttribute, copy (to clipboard), addElement and removeElement.
Sponsored By Rails Designer
Documentation
📑 See the docs site (built with Perron)
Release
Because I always forget how to do this and don't feel like pulling a third-party dependency for releasing.
npm version patch # or minor, or major
npm publish
git push
git push --tagsLicense
Attractive.js is released under the MIT License.
