New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mtween

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

mtween

A small tween easing animation library

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

mTween - A small tween easing animation library

Gsap is a great animation library, it is very powerful. But there are a few disadvantages is that the size is slightly larger. Sometimes I just want to implement a basic animation, may not want to introduce a large library, so I am based on gasp Made some cuts, thank you very much to the original author

Features

A small tween easing animation library, which is very small in size. Suitable for mobile project applications. Ported from gsap animation library.

  • Small size, only 10kb gzip
  • Retains most of tweenlite's features.
  • Basic dom animations like scale, x, y

Usage

Directly on the page reference

<script src="js/mtween.min.js"></script>

Or install using npm

npm install mtween --save
... 

import mTween from 'mtween';

Useage:

mTween.to($(".card1")[0], 0.5, { scale: 2.1, opacity: 0.2 });

mTween.fromTo(
    $(".card2 .card-content")[0], 0.5, {rotation: 0},
    {
        rotation: 230,
        delay: 0.2,
        ease: Back.easeOut
    }
);

mTween.fromTo($(".card3")[0], 0.5, { scale: 0.1 }, { scale: 1, delay: 1 });

Build

Node is a dependency, use terminal to install it with with:

build package

npm install
npm run build

es6 lint

npm run lint

License

LicenseFinder is released under the MIT License. http://www.opensource.org/licenses/mit-license

FAQs

Package last updated on 20 Nov 2019

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