Check The Spacing Between Elements Using The Spacing.js Library

Category: Javascript , Recommended | November 15, 2021
Author:stevenlei
Views Total:55 views
Official Page:Go to website
Last Update:November 15, 2021
License:MIT

Preview:

Check The Spacing Between Elements Using The Spacing.js Library

Description:

Spacing.js is a JavaScript utility that allows you to check the container size and measure the spacing (in px) between two elements.

How to use it:

1. Download the package and import the Spacing.js Library.

<script src="./dist/bundle.js" defer></script>

2. Hover on an element and then press the Alt key (or ⌥ Option on Mac).

3. Hover on another element and you will see the spacing between those two elements.

You Might Be Interested In:


Leave a Reply