Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teabyii/qlite

A little library to operate DOM like jQuery, as a subset of jQuery.
https://github.com/teabyii/qlite

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://github.com/madrobby/zepto/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](https://github.com/github/fetch)/[axios](https://github.com/mzabriskie/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