StaticaddTarget element
Class name(s) to add
StaticanimateAnimate element using CSS transitions
Target element
CSS properties to animate
Animation duration in milliseconds
Easing function
Promise that resolves when animation completes
StaticattrGet or set element attributes
Target element
Attribute name or attributes object
Attribute value (when name is string)
Attribute value (when getting)
Get or set element attributes
Target element
Attribute name or attributes object
Attribute value (when getting)
Get or set element attributes
Target element
Attribute name or attributes object
Attribute value (when getting)
StaticclosestFind closest ancestor element matching selector
Starting element
CSS selector
Matching ancestor element
StaticcreateCreate DOM element with attributes and content
HTML tag name
Element attributes
Element content
Created element
StaticdataGet or set element data attributes
Target element
Data key
Data value (when setting)
Data value (when getting)
Get or set element data attributes
Target element
Data key
Data value (when getting)
StaticdelegateDelegate event to selector inside a parent element
Parent element
Target selector
Event type
Event handler
StaticemptyEmpty element's content
Element to empty
StaticfadeFade in element
Target element
Animation duration in milliseconds
Promise that resolves when animation completes
StaticfadeFade out element
Target element
Animation duration in milliseconds
Promise that resolves when animation completes
StaticgetGet DOM element from selector or element
Element or selector
DOM element or null
StaticgetGet all matching DOM elements
CSS selector
Context element (default: document)
List of matching elements
StaticgetGet next sibling element
Target element
Optional selector to match
Next sibling element
StaticgetGet element's offset position
Target element
Position object with top, left, width, height
StaticgetGet element's position relative to viewport
Target element
Position object with top, left, width, height
StaticgetGet previous sibling element
Target element
Optional selector to match
Previous sibling element
StaticgetGet all siblings of an element
Target element
Optional selector to filter siblings
Array of sibling elements
StaticgetGet element's computed style property
Target element
CSS property name
Computed style value
StatichasCheck if element has CSS class
Target element
Class name to check
True if element has class
StaticinsertInsert element after target element
Element to insert
Target element
StaticinsertInsert element before target element
Element to insert
Target element
StaticisCheck if element is visible in viewport
Target element
True if element is visible
StaticmatchesCheck if element matches selector
Element to check
CSS selector
True if element matches selector
StaticobserveDebounced resize observer
Element to observe
Callback function
Debounce delay
ResizeObserver instance
StaticoffRemove event listener
Target element
Event type
Event handler
StaticonAdd event listener
Target element
Event type
Event handler
StaticremoveRemove element from DOM
Element to remove
StaticremoveRemove attribute from element
Target element
Attribute name
StaticremoveRemove CSS class from element
Target element
Class name(s) to remove
StaticscrollScroll element into view
Target element
Scroll options
StaticsetSet element content
Target element
Content to set
StaticsetSet element's style properties
Target element
Style properties object
StaticslideSlide down element
Target element
Animation duration in milliseconds
Promise that resolves when animation completes
StaticslideSlide up element
Target element
Animation duration in milliseconds
Promise that resolves when animation completes
StatictoggleToggle CSS class on element
Target element
Class name to toggle
Optionalforce: booleanForce add/remove
True if class is present after toggle
StatictoggleToggle visibility of an element
Target element
Show if true, hide if false
Add CSS class to element