Socket
Socket
Sign inDemoInstall

alignme

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    alignme

A JavaScript utility which automatically aligns position of an overlay element.


Version published
Maintainers
1
Created

Readme

Source

AlignMe

A JavaScript utility which automatically aligns position of an overlay element.

AlignMe

Usage

<script src="dist/alignme.min.js"></script>
var alignMe = new AlignMe($overlay, {
    relateTo: '.draggable',
    constrainBy: '.parent',
    skipViewport: false
});
alignMe.align();
  • relateTo Selector of element which you are going to align with. This one is required.
  • constrainBy Selector of constrait element. Default is null.
  • skipViewport Whether to ignore the viewport or not. Default is false.

FAQs

Last updated on 17 Mar 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc