Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

animaze

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animaze

Super tiny animation library

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by350%
Maintainers
1
Weekly downloads
 
Created
Source

animaze

Supersmall animation library.

npm install --save animaze

import animaze from 'animaze';
// Tip: If you are not using webpack/node.js you can use UMD version:
// animaze/lib/animaze.umd.js

const animazeOpacity = () => animaze({
    tick: v => { myDiv.style.opacity = v; }, // v is varied from 0 to 1
                                             // during animation
});

const animazeScroll = () =>  animaze({
    tick: v => window.scrollTo(0, 200 * v),
    duration: 500, // default is 240
    ease: k => 0.5 * (1 - Math.cos(Math.PI * k)), // this is default one
});

animazeOpacity().then(animazeScroll); // animaze returns Promise

Keywords

FAQs

Package last updated on 05 Sep 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc