Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @okiba/easings with all npm packages installed. Try it out:

var easings = require("@okiba/easings")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@okiba/easings v1.0.25

Easings functions used in okiba.js

Okiba / easings

Collection of easings to alter a value

__

import {easeInQuad} from '@okiba/easings'
const easedProgress = easeInQuad(progress)

Installation

npm i --save @okiba/easings

Or import it directly in the browser

<script type="module" src="https://unpkg.com/@okiba/easings/index.js"></script>

Usage

import easings from '@okiba/easings'

Untranspiled code 🛑

Okiba Core packages are not transpiled, so don't forget to transpile them with your favourite bundler. For example, using Babel with Webpack, you should prevent imports from okiba to be excluded from transpilation, like follows:

{
  test: /\.js$/,
  exclude: /node_modules\/(?!(@okiba)\/).*/,
  use: {
    loader: 'babel-loader',
    options: {
      presets: ['@babel/preset-env']
    }
  }
}

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free