torchcode.js

1.0.3 • Public • Published

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')

Readme

Keywords

none

Package Sidebar

Install

npm i torchcode.js

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

6.68 kB

Total Files

4

Last publish

Collaborators

  • zakschenck