A small dom element positioning lib inspired by jquery-ui/position
npm install positions
- no dependencies
- simple functional api
- well tested in ie9+
- tiny (871 B)
var positions =
// positions els 'top left' at targets 'top left'var css =
// positions els 'center center' at targets 'center center'var css =
// positions els bottom left at targets top leftvar css =
// positions els bottom center at targets bottom centervar css =
works in all good browsers! (also in ie9+)
Want to work on this for your day job?
This project was created by the Engineering team at Qubit. As we use open source libraries, we make our projects public where possible.
Find more details on our Engineering site. Don’t have an up to date CV? Just link us your Github profile! Better yet, send us a pull request that improves this project.` Contact GitHub API Training Shop Blog About