Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

transcroll

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transcroll - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

index.js

@@ -21,3 +21,2 @@ export const easings = {

* @param {Element|Window} el container element. Default: window
* @param {string} axis 'x' or 'y' axis
* @param {number} duration animation duration in ms. Default: 200

@@ -32,3 +31,3 @@ * @param {function|string} easing easing function or function name

*/
export default (target, { el = window, axis = 'y', duration = 200, easing = easings.easeInQuad, jump = 0.5, interrupt = true } = {}) => {
export default (target, { el = window, duration = 200, easing = easings.easeInQuad, jump = 0.5, interrupt = true } = {}) => {
function getPosition() {

@@ -35,0 +34,0 @@ return el === window ? window.pageYOffset : el.scrollTop;

{
"name": "transcroll",
"version": "1.0.0",
"version": "1.0.1",
"description": "Animate scroll in a modern way",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc