Skip to content
/ qlite Public

A little library to operate DOM like jQuery, as a subset of jQuery.

License

Notifications You must be signed in to change notification settings

teabyii/qlite

Repository files navigation

QLite

A little library to operate DOM like jQuery, as a subset of jQuery.

Why

  • jQuery is thriftless as its size and several less used functions.
  • Zepto updates slowly, and leaves unsolved issues.
  • Focus one thing, keey a tiny core to operate DOM, without collection operation, animation, network and something else.

For example, I hope to separate Ajax to use fetch/axios instead.

API

  • QLite

TODO

  • addClass/removeClass/hasClass/toggleClass
  • before/after
  • append/appendTo/prepend/prependTo
  • attr/removeAttr/
  • val/prop/removeProp
  • data/removeData
  • on/off/one
  • children/contents
  • parent/parents/closest
  • css
  • ready
  • remove
  • width/height/innerWidth/innerHeight
  • insertBefore/insertAfter
  • offset/offsetParent
  • position
  • prev/next/siblings
  • scrollLeft/scrollTop

About

A little library to operate DOM like jQuery, as a subset of jQuery.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published