• Stars
    star
    483
  • Rank 91,050 (Top 2 %)
  • Language SCSS
  • Created almost 11 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Sassy version of Dan Eden's Animate.css

animate-sass

Sassy just-add-water CSS animation

animate-sass is a Sass version of Dan Eden's Animate.css.

Installation

Add animate-sass to your project using one of the methods below.

NPM: https://www.npmjs.com/

$ npm install animate-sass --save-dev

Yarn: https://yarnpkg.com/en/

$ yarn add animate-sass --dev

Bower: http://bower.io

$ bower install animate-sass

Features

animate-sass has a couple of features to make the most of what Sass has to offer for more efficient development.

Animations

All individual animation modules are kept in their own Sass partials so they can be found easily. You shouldn't need to edit these as they are part of the animate.css library.

Modules are arranged by the following animation types;

Animation Types
attention-seekers
bounce-enter
bounce-exit
fade-enter
fade-exit
flippers
lightspeed
rotate-enter
rotate-exit
special
Helpers

Base Styles The helpers/_base.scss file contains the main .animate css rules for animate-sass to work.

Mixins There are a couple of Sass mixins defined in helpers/_mixins.scss that some of the modules use to generate the necessary compiled css.

Settings The helpers/_settings.scss file defines a range of default Sass variables which are used by some of the animation modules. You can override the defaults in your own settings or style sass file(s).

Animation Module loading

The settings file also sets all animation modules to false (nothing gets loaded). To include an animation module in your project, simply override the $use-[moduleName] variable in your own settings file to true.

By only choosing the animation modules you need, you're keeping the compiled css at it's leanest!

Eg:

// These animation modules will be included in output css
$use-fadeIn: true;
$use-fadeOut: true;

Usage

To use animate.scss in your project, you will need to have Sass installed. Visit the Sass site to find out how to do this.

Once Sass has been installed, you can download or clone this repo into your project and import animate.scss into your main Sass stylesheet.

Eg: inside css/style.scss

@import "[path-to-node_modules-or-bower_components]/animate-sass/animate";

Choose which modules you want to use in you project by overriding the variables set in the helpers/_settings.scss file in your own settings or variables file.

Eg: inside _vars.scss

...
// These override the default vars inside animate-sass/helpers/_settings.scss
$use-fadeIn: true;
$use-fadeOut: true;
...

Eg: inside css/style.scss

@import "vars"; // project's Sass vars file
@import "[path-to-node_modules-or-bower_components]/animate-sass/animate";

Finally in your markup, simply add the class animated to an element, along with any of the animation class names.

You may also want to include the class infinite for an infinite loop.

    <div class="animated fadeIn">
    	<p>Watch me fade in!</p>
    </div>

That's it! You've got a CSS animated element. Super!

License

Animate.scss is licensed under the MIT license. http://opensource.org/licenses/MIT

Contributing

Pull requests are where it's at!

Apologies in advance for the slow action on pull requests and issues. When submitting your pull request please make sure you match the naming convention (camelCase, categorised [fades, bounces, etc]).

Learn more

You can check out Dan Eden's original animate.css here. See working examples as well as how to use with javascript or creating custom css classes

Change log

See Changelog

More Repositories

1

generator-inuit

A yeoman generator for the inuit css framework by Harry Roberts
JavaScript
6
star
2

bootstrap-sass-components

Yet another Sass bootstrap package but only contains the framework's assets (sass, js, fonts) ready to by installed into any project type
CSS
2
star
3

buildingBlocks

From codeschool's ExpressJS soup to bits screenscast
JavaScript
1
star
4

popvinyls

A simple angular app displaying a list of both "wanted" and "owned" pop vinyl figurines from a JSON file. The list has the ability to be sorted and filtered.
CSS
1
star
5

LearnNode

My solution for the Learn Node premium training course by Wes Bos. (https://learnnode.com/)
CSS
1
star
6

egghead-redux-part2

A repo to help document my progress to Dan Abramov's "Building React applications with idiomatic redux" course on egghead.io
JavaScript
1
star
7

ReactForBeginners

My Solution for The ReactForBeginners course by Wes Bos - (https://ReactForBeginners.com)
CSS
1
star
8

modern-js-starter

A small set of tools to get a modern javascript project up and running
JavaScript
1
star
9

modern-js-test-starter

A small collection of packages to quickly and easily unit test js files using ES6 & Tape
JavaScript
1
star
10

webpack-scp-demo

The final version of the example highlighted in an article by Uday Hiwarale from ITNext on Medium
JavaScript
1
star
11

egghead-redux-part1

A repo to help document my progress to Dan Abramov's Getting started with Redux course on egghead.io
JavaScript
1
star
12

pluralsite-react-express-app

Grocery List app built with express and react as part of an online video tutorial by Pluralsite
JavaScript
1
star
13

weewikipaint

Sample test driven webapp from James Shore's "Let's code javascript" web video series.
JavaScript
1
star
14

assemble-json-demo

A copy of the yaml demo project but using json data files
CSS
1
star
15

assemble-yaml-demo

a demo project to pass external yaml files to front-matter in handlebars templates. Pages built using Assemble 0.15.0
CSS
1
star
16

etsy-profit-calculator

Angular Webapp that aims to help Etsy store owners work out their profits before adding a new product to their store based on Retail price and a variety of Costs.
JavaScript
1
star
17

google-dev-first-pwapp

My solution for the "My First Progressive Web App" code lab by Google. https://codelabs.developers.google.com/codelabs/your-first-pwapp/
JavaScript
1
star
18

pluralsite-adminapp

Codebase for Plural site's [Building Applications with React and Redux in ES6 course by Cory House - https://app.pluralsight.com/library/courses/react-redux-react-router-es6/table-of-contents
JavaScript
1
star