class-change

A versatile Element.classList alternative for manipulating CSS class names, triggering change events using HTML data attributes, and creating class-related event listeners using a simple, declarative API.

Usage no npm install needed!

<script type="module">
  import classChange from 'https://cdn.skypack.dev/class-change';
</script>

README

class-change.js

NPM Build Status Codacy Codecov License: MIT Tweet

A versatile Element.classList alternative for manipulating CSS class names, triggering change events using HTML data attributes, and creating class-related event listeners using a simple, declarative API.

  • Homepage - Documentation and usage examples

Contact & Support

License

This project is licensed under the MIT License. See the LICENSE for details.

Copyright (c) John Hildenbiddle (@jhildenbiddle)