npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

footwork-animate

v3.5.13

Published

Just-add-water CSS animation (for FootworkJS)

Downloads

4

Readme

footwork-animate

npm version Bower version

Just-add-water CSS animation (for FootworkJS)

This is a CSS library/toolset used to animate elements into and out of view. Elements are animated into and out of the browser by using a parent flag which triggers a CSS animation on its nested children.

  • NOTE: This library can be used independently of, but was developed for use with FootworkJS when animating its elements.
  • NOTE: Based on/heavily customized version of animate.css.

Installation

To install via Bower, simply do the following:

$ bower install footwork-animate --save

or you can install via npm:

$ npm install footwork-animate --save

Basic Usage

  1. Include the stylesheet on your document's <head>
<head>
  <link rel="stylesheet" href="/bower_components/footwork-animate/animate.min.css">
</head>
  1. You need to add one of the following classes to the elements (direct children of the parent) you want to animate:
  • fadeIn
  • fadeInDown
  • fadeInDownBig
  • fadeInLeft
  • fadeInLeftBig
  • fadeInRight
  • fadeInRightBig
  • fadeInUp
  • fadeInUpBig
  • flipInX
  • flipInY
  • lightSpeedIn
  • rotateIn
  • rotateInDownLeft
  • rotateInDownRight
  • rotateInUpLeft
  • rotateInUpRight
  • rollIn
  • zoomIn
  • zoomInDown
  • zoomInLeft
  • zoomInRight
  • zoomInUp
  • slideInDown
  • slideInLeft
  • slideInRight
  • slideInUp
  1. Finally, add the class animateIn to the parent element of the elements you want to animate into view.

Full example:

<div class="contents">
  <!-- Any element with one of the above animations is invisible until
      its parent has the animateIn class added. -->
  <h1 class="fadeInUp">Example fadeInUp</h1>
  <h1 class="flipInX">Example flipInX</h1>
</div>
/**
* All of the direct children of the parent will then have their
* animations triggered when the animateIn class is added to the parent.
*/
$('.contents').addClass('animateIn');

// removing the animateIn class will cause the element to reset to original starting, invisible state
$('.contents').removeClass('animateIn');

Custom Builds

footwork-animate is offered in both SCSS and plain (compiled) CSS form. You can either include the supplied SCSS and customize your build that way or you can clone the repo, modify the source, and rebuild as described below:

  1. Clone the repo from GitHub:
git clone https://github.com/footworkjs/footwork-animate.git
cd footwork-animate
  1. Install Node.js and NPM (if needed):

This is platform specific. Your OS may already include it, however if not please see: Installing Node.

  1. Install gulp globally (if needed):
sudo npm install -g gulp-cli
  1. Next, run gulp from the footwork-animate folder to compile your custom builds.
gulp

If you want only some of the “fading entrances”, simply edit the animate-config.json file to select only the animations you want to use.

"fading_entrances": {
  "fadeIn": true,
  "fadeInDown": false,
  "fadeInLeft": true,
  "fadeInLeftBig": true,
  "fadeInRight": false,
  "fadeInRightBig": true,
  "fadeInUp": false,
  "fadeInUpBig": true
}

Available SASS Variables/Defaults

If you are making your own custom build using the SCSS, you have these available variables you can override:

// The class added to the parent which triggers the animation on its children
$animateInClass: 'animateIn';

// The duration of the animations
$animateInDuration: 0.6s;

// For animations that 'slide' elements, this is the 'normal' distance
$normalDistance: 100px;

// For animations that 'slide' elements, this is the 'big' distance
$bigDistance: 200px;

@import "/path/to/footwork-animate/animate.scss";

License

footwork-animate is licensed under the MIT license. (http://opensource.org/licenses/MIT)