0.3.0 • Published 10 years ago

brinkbit-brand-animations v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

brinkbit-brand-animations

They're specific to our brand, but hey, if you're curious, we're an open book.

Proprietary brand animations for Brinkbit.

Installation

npm i --save brinkbit-brand-animations

Dependencies

Currently directly depends on global jquery and jquery.hx

Usage

Exposes es2015 modules which need to be transpiled and bundled.

For letter animations:

import { alphabet, Animation } from 'node_modules/brinkbit-brand-animations';

// pass in a container element
const $container = $( '.container' );
const animation = new Animation( $container );
animation.setupLetter();
// pass in the letter we want to animate to and the duration of the animation
animation.animateToLetter( alphabet.logo, 1000 )
.then(() => {
    // the animation has completed
});

Testing

npm test

Contributing

The guide for contributing to any Brinkbit repository can be found here.

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago