# polymorph-js

> Morph SVG shapes

Latest version **1.0.2** (published 2019-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install polymorph-js
pnpm add polymorph-js
yarn add polymorph-js
bun add polymorph-js
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-10-01 |
| First published | 2017-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 64.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 301 |
| Author | Christopher Wallis |
| Maintainers | notoriousb1t |

## Links

- npm: https://www.npmjs.com/package/polymorph-js
- Repository: https://github.com/notoriousb1t/polymorph
- Homepage: https://notoriousb1t.github.io/polymorph-docs
- Issues: https://github.com/notoriousb1t/polymorph/issues
- npm.io page: https://npm.io/package/polymorph-js

## Recent versions

- 1.0.2 (latest) — 2019-10-01
- 1.0.1 — 2019-09-30
- 1.0.0 — 2019-09-16
- 0.2.4 — 2018-11-02
- 0.2.3 — 2018-11-02
- 0.2.2 — 2018-05-29
- 0.2.1 — 2017-11-08
- 0.2.0 — 2017-11-08
- 0.1.0 — 2017-11-02
- 0.0.21 — 2017-11-01
- 0.0.20 — 2017-10-31
- 0.0.19 — 2017-10-28
- 0.0.18 — 2017-10-27
- 0.0.17 — 2017-10-26
- 0.0.16 — 2017-10-24
- … 15 more at https://npm.io/package/polymorph-js/versions

## README

# Polymorph

*Morph SVG Paths*

[![npm version](https://badge.fury.io/js/polymorph-js.svg)](https://badge.fury.io/js/polymorph-js)
[![Build Status](https://travis-ci.org/notoriousb1t/polymorph.svg?branch=master)](https://travis-ci.org/notoriousb1t/polymorph)
[![Downloads](https://img.shields.io/npm/dm/polymorph-js.svg)](https://www.npmjs.com/package/polymorph-js)
[![gzip size](http://img.badgesize.io/https://unpkg.com/polymorph-js/dist/polymorph.min.js?compression=gzip&label=gzip%20size&style=flat&cache=false)](https://unpkg.com/polymorph-js/dist/polymorph.min.js) [![Greenkeeper badge](https://badges.greenkeeper.io/notoriousb1t/polymorph.svg)](https://greenkeeper.io/)

## Features

 - morphs between two or more svg paths using a simple function
 - handles variable length paths and holes in paths
 - compatible with [Just Animate](https://github.com/just-animate/just-animate), [Popmotion](https://github.com/popmotion/popmotion), [nm8](https://github.com/davidkpiano/nm8), [TweenRex](https://github.com/tweenrex/tweenrex), and other animation libraries
 - Super tiny, about 6k minified
 - Free for commercial and non-commercial use under the MIT license

<table>
    <tbody>
        <tr>
        <td style="text-align: center;"><h3>Flubber (53kb)</h3></td>
        <td style="text-align: center;"><h3>Polymorph  (6kb)</h3></td>
        </tr>
        <tr>
            <td>
                <img style="max-height: 320px"
                     src="https://raw.githubusercontent.com/notoriousb1t/polymorph/HEAD/assets/flubber-evolve.gif" />
            </td>
            <td>
                <img style="max-height: 320px"
                     src="https://raw.githubusercontent.com/notoriousb1t/polymorph/HEAD/assets/polymorph-evolve.gif" />
            </td>
        </tr>
    </tbody>
</table>

## Get Started

Read the full [documentation](https://notoriousb1t.github.io/polymorph-docs) to get started or check out the demos below.

## Demos
- [Morph Leonardo da Vinci to a Skull](https://codepen.io/notoriousb1t/pen/KyPoYm)
- [Charmander Evolves with Just Animate 2 + Polymorph](https://codepen.io/notoriousb1t/pen/gXpYEG?editors=1010)
- [Morphin' Icons with Just Animate 2 + Polymorph](https://codepen.io/notoriousb1t/pen/veMyxw?editors=1010)


## License
This library is licensed under MIT.

## Have a question or something to contribute?
Please create an [issue](https://github.com/notoriousb1t/polymorph/issues) for questions or to discuss new features.

## Special Thanks

Special thanks to [@shshaw](https://twitter.com/shshaw) for the amazing logo and artwork!

---
_Source: https://npm.io/package/polymorph-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
