center-center
TypeScript icon, indicating that this package has built-in type declarations

0.0.72 • Public • Published

center-center

For calculating the left and top position coordinates of a vertically and horizontalled centered target element within a container according to the container's position in the viewport

The target is at the center center of its container here:

Top

And here:

Middle

And here:

Bottom

The position of the vertically and horizontalled centered target element changes according to how its container is located in the viewport

A demonstration can be found in docs

Readme

Keywords

none

Package Sidebar

Install

npm i center-center

Weekly Downloads

122

Version

0.0.72

License

MIT

Unpacked Size

17.8 kB

Total Files

12

Last publish

Collaborators

  • sequencemedialimited