A simple dom manipulation similar to jquery ( DOM NPMJS )
npm i @kushii/dom
-
Start by importing/requiring @kushii/dom as dom
-
Call dom( Selector / Element ) similar to a query selector
> As axis with string parameters and returns a number
Parameters
1) cbpm ( Size )
> Includes Sizes | Content | Padding | Border | Margin |
2) tblr ( Position )
> Starting at middle of the element ( 0, 0 ) calculates | Top | Bottom | Left | Right |
> Works similar to jquery, but added transform functions such as translateX,
scale, etc. that accepts a string unit, number, and array of string or number
> Returns a string of style property