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

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.

Readme

Keywords

Package Sidebar

Install

npm i clingy

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • jacobbuck