1.0.5 • Published 2 years ago

brisajs v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

BrisaJS

Archived! For a much better and newer version check VagaJS

https://github.com/lotrekagency/vagajs

BrisaJS is a small and lightweight javascript library for smooth scroll animations and effects, such as fade in.

Table of contents

Getting started Prerequisities Documentation Built with Browser support Copyright and license TODOs

Prerequisities

Npm/yarn

Getting started

Let's begin by getting BrisaJS in your project by installing it via a packet manager

npm install brisajs

or

yarn install brisajs

Then import brisa in your js:

import * as brisa from 'brisajs/src/js/main.js';

This will import both the javascript and the styles to make BrisaJS work in your project.

Documentation

WIP

Once you've added BrisaJS to your project, you can start enabling it like this, passing a threshold value if needed (default is 0.25):

brisa.start(0.5);

You need to add the BrisaJS' related CSS classes to your elements to animate them.

Fade related classes: fade-in, fade-out, fade-left, fade-right

Animation timing related classes: anim-slow-1, anim-slow-2, anim-slow-3, anim-slow-4

Example:

<div class="fade-in">I'll fade in</div>

<div class="fade-left anim-slow-2">I'll fade from left a bit slower</div>

Built with

WIP Webpack, babel, etc

Copyright and license

Code copyright 2020 Andrea Morosi. MIT

Browser support

BrisaJS focuses mostly on the latest versions of Chrome, Firefox, Edge and Safari.

TODOs

x license

better README, with some docs

docs/demo page

better options handling

allow customization of some parameters such as transform values

more effects

scss-in-js instead of scss?

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago