🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

es6tween-plugin-morph

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6tween-plugin-morph

SVG Shape Morphing Plugin for es6-tween

latest
npmnpm
Version
0.0.21
Version published
Maintainers
1
Created
Source

es6-tween-plugin-morph

size gzipsize

Morph plug-in for ES6 tween

Usage

import { Tween } from 'es6-tween';
import 'es6-tween-plugin-morph';

let tween = new Tween(document.querySelector('#myPath'), {morph:{shape:'#circleSVGShape'}).to({morph:{shape:'#rectSVGShape'}}, 2000).start();

Config

  • shape: Any - If want to use reverse/moveIndex, you should shape
  • reverse: Boolean - Reverses the path if your want change naturality
  • moveIndex: Number - Changes the index of points to make better/worse naturality
  • approximate: Boolean - Requires flubber library and makes animation a lot better

Keywords

morph

FAQs

Package last updated on 29 Apr 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