Skip to content

A light-weight library for declarative DOM actions using data attributes

License

Notifications You must be signed in to change notification settings

Rails-Designer/attractivejs

Repository files navigation

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

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 --tags

License

Attractive.js is released under the MIT License.

About

A light-weight library for declarative DOM actions using data attributes

Topics

Resources

License

Stars

Watchers

Forks

Contributors