Overview of Tether positioning capabilities
masterTether is a positioning library designed to handle complex overlay attachments (like tooltips, dropdowns, and info boxes) to page elements. It solves common issues such as element clipping caused by overflow: visible parents by using absolute positioning in the body.
Key features include:
- GPU-accelerated repositioning: Uses CSS transforms instead of
top/leftwhere possible to ensure 60fps scrolling. - Smart Container Awareness: Handles elements attached to fixed-position items or elements inside scrollable containers.
- Edge Detection & Flipping: Automatically flips the overlay to the opposite side (top, bottom, left, or right) if it hits the edge of the screen or a scrollable container.
- Boundary Constraints: Supports confining elements to specific areas or hiding them when they leave a defined boundary.
- Performance Optimization: Designed to optimize multiple repositioning requests into a single repaint.