🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

zero2one

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zero2one

Animation, animates from 0 to 1 in a specific time with a defined acceleration (easing) function

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

MIT License LinkedIn


Logo

a small animation helper

Table of Contents

About The Project

I started this project in 2012. Now I have completely rewritten the code.

Features

  • Coded in vanilla JS.
  • easing
  • Zero2One is dependency-free

(back to top)

Usage

Quickstart

in your terminal

yarn add zero2one
# or
npm add zero2one
# or
pnpm add zero2one

html element

<div id="demo"></div>

javascript

import Zero2One from "zero2one";

const demo = document.getElementById("demo");
if (demo) {
  const z2o = new Zero2One();

  const start = 1900;
  const end = 2023;
  const duration = 2000;
  const delta = end - start;

  z2o.start(duration, 'easeIn', (progress) => {
    demo.innerText = start + delta * progress << 0;
  });
}

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Wolfgang Jungmayer - lemon3.at

Project Link: https://github.com/lemon3/zero2one

(back to top)

coded with ❤ in vienna
by wolfgang jungmayer

Keywords

animation, tween, easing

FAQs

Package last updated on 29 Apr 2025

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