css-toggle

pure css toggle behavior

Usage no npm install needed!

<script type="module">
  import cssToggle from 'https://cdn.skypack.dev/css-toggle';
</script>

README

ScreenShot

CSS Toggle

pure css toggle behavior

easy, fast, small, useful, no curly stuff

Example

ScreenShot

Install

npm install css-toggle --save

Include

@import '/node_modules/css-toggle/dist/toggle.css';

Use

<input type="checkbox" class="toggle" id="{name}" />

<label for="{name}">Toggle</label>

<div class="target">
    toggled content
</div>