Skip to content

gilbert-rehling/javascript-intersections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

javascript-intersections

This script handles the tracking of two draggable div and displays some position based data.

I updated a JSFiddle I found so that it colors in the overlapping area.

This is the original jsfiddle:
source-jsfiddle

I modified the layout and aded the requirements so that the overlapping area displays with an alternative background color.

Hopefully its useful as an example of how to use JavaScript to track element collisions.

About

JavaScript rectangle intersection observer. Modified to highlight the collision area.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages