A small Vanilla JS utils alternative to jQuery.
NPM
npm i boot-helpers
https://www.npmjs.com/package/boot-helpers
API
All methods are below.
- ready()
- loader()
- len()
- get()
- append()
- prepend()
- before()
- after()
- prependTo()
- appendTo()
- wrapInner()
- html()
- text()
- clone()
- addClass()
- removeClass()
- toggleClass()
- css()
- find()
- eq()
- prev()
- next()
- parent()
- parents()
- children()
- filter()
- not()
- siblings()
- first()
- last()
- closest()
- attr()
- data()
- prop()
- removeAttr()
- removeData()
- one()
- on()
- off()
- offset()
- position()
- scrollTop()
- scrollLeft()
- width()
- height()
- outerWidth()
- outerHeight()
- remove()
- empty()
- each()
- allAttrs()
- hasClass()
- val()
- show()
- hide()
- fadeIn()
- fadeOut()
- serializeArray()
- index()
- trigger()
- maxDimension()
- animate()
Usage
https://github.com/xizon/boot-helpers