New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

seven-tween-ease

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seven-tween-ease

Easing functions for seven tween or whatever you might need them for

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Seven Tween Ease

Easing functions for seven tween or whatever you might need them for

Installation

Installing Package

npm install -D seven-tween-ease

Importing in node

let sevenTweenEase = require('seven-tween-ease')

Importing in Webpack

import sevenTweenEase from 'seven-tween-ease'

Importing through script tag
To be found in the release folder

<script type="text/javascript" src="seven-tween-ease.min.js"> 

Usage

Access the tweening functions and use them as you want or to overwrite seven-tweens _easeFunctions property. If you are using it for seven-tween, you can also just use the plugin method.

// Seven Tween Usage
sevenTweenEase.plugin(sevenTween)
// OR
sevenTween._easeFunctions = sevenTweenEase.easeFunctions

// Generic usage for other purposes.
let easeFunctions = sevenTweenEase.easeFunctions
let elasticOut = easeFunctions.easeOutElastic
let exponentialInOut = easeFunctions['easeInOutExpo']

Ease Function parameters

All the supplied functions take the following parameters: (t, b, c ,d) where:

  • t = total time ellapsed of tween.
  • b = initial tween value
  • c = difference from initial tween value and the final tween value
  • d = total duration of tween

FAQs

Package last updated on 19 Jun 2018

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

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