Allows to edit GSAP v2.x easings in dat.GUI

Usage no npm install needed!

<script type="module">
  import datGuiEaseGsapV2 from 'https://cdn.skypack.dev/dat.gui.ease.gsap.v2';


npm license npm peer dependency version npm peer dependency version


Provides support for GreenSock Ease classes. CustomEase plugin should be provided to enable curve editing.

Example usage:

import * as dat from 'dat.gui';
import { extend } from 'dat.gui.ease';
import GSAPv2Middleware from 'dat.gui.ease.gsap.v2';

     new GSAPv2Middleware(CustomEase)


npm install --save gsap@^2.0.0
npm install --save-dev dat.gui dat.gui.ease dat.gui.ease.gsap.v2

Use in the project

  1. File include:
<script type="text/javascript" src="https://unpkg.com/dat.gui.ease.gsap.v2@latest/dist/dat.gui.ease.gsap.v2.min.js"></script>
     const middleware = new datGuiEaseGsapV2.Middleware();
  1. ES6 module
import GSAPv2Middleware from 'dat.gui.ease';
// or
import { Middleware as GSAPv2Middleware } from 'dat.gui.ease';
const middleware = new GSAPv2Middleware();
  1. CommonJS
const datGuiEaseGsapV2 = require('dat.gui.ease.gsap.v2');
const middleware = new datGuiEaseGsapV2.Middleware();