1.0.9 • Published 4 years ago

fluid-sass v1.0.9

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

What is Fluid-Sass?

Fluid sass in a series of scss mixins and css classes to create fluid and spring based motion animations, just include mixin in your class to create fast and beautiful animations.

There are currently 22 animations available official documentation.

Installation

$ npm install fluid-sass 
$ npm install -D fluid-sass 
$ yarn add fluid-sass 

Usage

This command installs the files you need (css, scss). If you are using in development mode, you can use npx prefix before fluid-sass command.

$ fluid-sass install <typeFile> --dir=<dir>
optionsdescriptionoptions
typeFileInstall a file type css or scss in the project( css, scss )
dirThe directory to install

How to Integrate

See a sample of how to integrate development code in HTML, CSS, SCSS and for more dynamism in Javascript.

HTML

Include your class names personalized.

<!-- page.html -->
<link rel="stylesheet" href="animations.css" />

<header class="fluid-bounce">
    <button class="fluid-shake-vertical" id="btn-sign-in">
        Sign in
    </button>
    <button class="fluid-shake-vertical" id="btn-sign-up">
        Sign up
    </button>
</header>

SASS / SCSS

Include the class name as a mixin to your custom classes.

@import "animations";
// page.scss
.header-component {
    @include fluid-bounce();
}
.button-component {
    @include fluid-shake-vertical();
}

Javascript

Include the classNames defined into yout project

// main.js
let myButton = document.getElementById('btn-sign-up');
byButton.addEventListener('click' , function (e) {
    e.currentTarget.classList.toggle('fluid-shake-vertical');
});

List of class names and mixins animations

The class names is equal to mixins names | Class names or Mixins names | Type animation | | --- | :--: | | fluid-bounce | bounce | | fluid-bounce-inset | bounce | | fluid-bounce-rotate | bounce | | fluid-bounce-expand-x | bounce | | fluid-bounce-expand-y | bounce | | fluid-fade | fade | | fluid-fade-intermittent | fade | | fluid-fade-left | fade | | fluid-fade-right | fade | | fluid-from-left | slide | | fluid-from-right | slide | | fluid-from-top | slide | | fluid-from-bottom | slide | | fluid-shake | shake | | fluid-shake-rotate | shake | | fluid-shake-vertical | shake | | fluid-shake-cross | shake | | fluid-shake-skew-x | shake | | fluid-shake-skew-y | shake | | fluid-d3-rotate | 3d | | fluid-d3-triangle | 3d |

View more animations in the documentation following url fluid-sass documentation

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago