1.4.2 • Published 5 years ago

antiquery v1.4.2

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Anti-Query

You dont need any Big-Ass-Query that weights about 50KB, this library is enough for your needs (probably)

Whats this

this is DOM manipulation language

Installation

install by typing

yarn add antiquery --save
# or 
npm install antiquery --save

What is the usage

to use as import/export module use

import $ from 'antiquery'

for older javascript use:

// es2015 compiled with babel
const $ = require('antiquery/es2015').default

// es6
const $ = require('antiquery').default

for browser just use with webpack/backpack dont just include as one of 100's script src's like in 20'th century

...

then you can use like

$('div.golden')
  .removeClass('golden')
  .css({ background: 'black', color: 'white' })
  .text('hello')
  .animate('blink')
  .show()

What is ready?

  • what document.querySelector supports (a lot in current browsers)
  • chaining next methods
  • methods:
    • get (index: Number? or returns all)
    • each (fn: Function)
    • parents
    • children
    • find
    • remove
    • addClass (className: String)
    • removeClass (className: String)
    • css (css: Object)
    • hide
    • show
    • text (text: String)
    • html (html: String)
    • animate (className: String, ms: Number)

animate adds css class for duration of ms

Enjoy

by Jacek Pietal github.com/Prozi

License

MIT

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago