Socket
Socket
Sign inDemoInstall

@livelybone/scroll-get

Package Overview
Dependencies
0
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "@livelybone/scroll-get",
"version": "2.0.0",
"version": "2.0.1",
"description": "A module for get left/top distance to client or page of element",

@@ -5,0 +5,0 @@ "main": "./lib/umd/index.js",

@@ -15,2 +15,5 @@ # @livelybone/scroll-get

## Global name
`ScrollGet`
## Usage

@@ -25,2 +28,8 @@ ```js

var pos1 = posRelativeToClient(document.getElementById('id'))
```
```
```js
// when you want to set this module as external while you are developing another module, you should import it like this
import * as ScrollGet from '@livleybone/scroll-get'
const {posRelativeToPage, posRelativeToClient} = ScrollGet
```
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