Socket
Socket
Sign inDemoInstall

@twobulls/colib

Package Overview
Dependencies
0
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @twobulls/colib

Tweening and logic sequencing for typescript


Version published
Weekly downloads
0
Maintainers
2
Install size
269 kB
Created
Weekly downloads
 

Readme

Source

Colib

Build Status npm version semantic-release MIT license

Next generation tweening and timed logic sequencing for typescript.

Usage

At a Glance

Colib is a highly modular system for building complex animations/timed event sequences with support for coroutines.

globalScheduler().push(
  waitForTime(3),
  changeByOffset(balloon, {y: 100 }, 0.5, smooth()),
  parallel(
    changeFrom(balloon, {alpha: 0}, 0.3, smooth()),
    changeFrom(balloon, {scale: 0}, 0.5, inBack())
  ),
  coroutine(popBalloon)
);

function* popBalloon() {
  yield waitForTime(1);
  yield parallel(
    changeTo(balloon, {scale: 10}, 0.3, outBack())
    changeTo(balloon, {alpha: 0}, 0.2)
  );
  console.log("Popped");
}

Installation

yarn add colib
# OR
npm install colib

Documentation

Check out the documentation here.

Changelog

See the GitHub release history.

Contributing

Check our our contributor and developer guides.

Acknowledgements

Brought to you by Two Bulls

Keywords

FAQs

Last updated on 12 Apr 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc