A light-weight library for declarative DOM actions using data attributes.
Quick example:
<p id="content">
This element should toggle the `active` class when clicking the button below.
<button data-action="toggleClass#active" data-target="#content">
Toggle
</button>
</p>
Sponsored By Rails Designer
📑 See the docs site (built with Perron)
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 --tags
Attractive.js is released under the MIT License.