New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@slidy/easing

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slidy/easing

Simple easing functions for inertion scrolling

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
31
-43.64%
Maintainers
1
Weekly downloads
 
Created
Source

npm version npm bundle size npm downloads github issues npm license

@slidy/easing

Simple easings function for inertion scrolling.

Try the DEMO

Getting started 🚀

The package is available via NPM:

npm i -D @slidy/easing

or from CDN:

<script src="https://unpkg.com/@slidy/easing"></script>

Usage

Easing functions available via named import as MJS/CJS module or via global Window.Slidy object props as IIFE.
Includes linear, quad, cubic, quart, quint, bounce, sine, expo, elastic, circ, back as EaseIn functions.
More info: https://easings.net.

⚠️ For proper operation minimal duration: 450 needed.

/** Easing function.
 * @param t value from 0 to 1
 * @returns value from 0 to 1
 * @default linear
 * @see https://easings.net
 */

type Easing = (t: number) => number;

MJS/CJS module import

<head>
   <script type="module">
        import * as easing from 'https://unpkg.com/@slidy/easing/dist/index.mjs'; // MJS module
        // OR
        import * as easing from 'https://unpkg.com/@slidy/easing/dist/index.cjs'; // CJS module
    </script>
</head>

IIFE as Window Object

<head>
    <script src="https://unpkg.com/@slidy/easing/dist/index.js"></script>
</head>

<script>
    window.onload = () => easing = SlidyEasing.linear()
</script>

As third party module in any frameworks

<!-- Svelte -->

<script>
    import { linear } from '@slidy/easing';

    <Slidy easing={linear} />
</script>

MIT © Valexr

Keywords

Slidy

FAQs

Package last updated on 04 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts