This package has been deprecated
Author message:
This project is no longer being maintained. I'd recommend using the popular @popperjs/core package instead as it's mature, better tested, and offers more features.
clingy 1.0.3 • Public • Published 7 years ago clingy
Position elements relative to each other.
Example
import cling from ' clingy ' ;
const whatever = document . querySelector ( ' .whatever ' ) ;
const target = document . querySelector ( ' .target ' ) ;
const myCling = cling ( whatever , target , {
from : ' 25%-10 top ' ,
to : ' left 75% '
} ) ;
myCling . forceUpdate ( ) ;
myCling . destroy ( ) ;
Compatibility
Requires ES5 support and requestAnimationFrame
support. Works with your usual shims.
Package Sidebar Install Downloads Weekly Downloads