Slide or Fade toggle elements.


Keywords
altai
License
MIT
Install
npm install altai_toggle@1.0.20

Documentation

Altai Toggle


Installation

Run:

yarn add altai_toggle

Add this line to your application.js

//= require altai_toggle/dist/altai_toggle

And call it using the following:

$(".altai-toggle").altaiToggle();

Settings:

## Available effect types.
effect: "slide" or "fade"

## Will trigger the toggle action.
klass: ".trigger"

## Toggle box appearance speed when triggered.
speed: "fast", "medium", "slow" or numeric value

## Hide or show toggle box on load.
hide: true or false

## Hide or not toggle box on window resize.
close: true

## Print log messages in your developer console.
debug: true or false

License

The gem is available as open source under the terms of the MIT License.