Skip to content

josephj/alignme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A JavaScript utility which automatically aligns position of an overlay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published