plainJS

Functions / Styles

Styles

Element styles, dimensions and positions. 5 snippets.

  1. Get and set scroll position of an element$.scrollLeft(), $.scrollTop()
  2. Get the offset position of an element relative to its parent$.position()
  3. Get the position of an element relative to the document$.offset()
  4. Getting width and height of an element$.width(), $.height(), $.outerWidth(), $.outerHeight(), $.innerWidth(), $.innerHeight()
  5. Set and get CSS styles of elements$.css()

The other groups: