torchcode.js
v1.0.3
Published
Library that torches chunks of code into custom parameters
Downloads
9
Readme
torch-js
Torch (or Torchcode) is an independently made Javascript library made by Zak Schenck. Its goal is to shorten common functions and lines of code into one line. Many of its attributes are customizable with parameters.
Some common use cases are
• Adding a quick hamburger toggle menu (or any dropdown toggle). • Quickly utilizing "click" event functions for multiple uses. • Animations such as menu slider animations and basic movement. • Quick display and hide on elements. • Basic loop through array function. • Basic math and working with numbers.
To start, install the package and run a function by using $T. A basic function to hide an element would be $T.off('.yourClass')