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

delay.css

v1.3.1

Published

CSS animation helpers

Downloads

10

Readme

Delay.css logo

delay.css Build Status Master GitHub license GitHub issues devDependencies Status

CSS animation timming helpers

Build Status

Branch Master: Build Status Branch Master

Branch dev: Build Status Branch Dev

Whats is it

Delay.css works best along with Daniel Eden's Animate.css, by including CSS classes and helpers to control animation timmings and delays, but it works on any kind of CSS animations as well.

In other words, it is possible to add sequential animations or increase the duration of a particular animation using only a tiny helper class.

But we can also do this with CSS3, why add this?

Because of the same reason we have Animate.css, it is just easier to implement something that has already been done and tested than create something from scratch.

TL;DR

Delay.css was created to help you control your CSS animation timmings within a project.

Installing

$ bower install delay.css --save

It also works with npm:

$ npm i delay.css --save

Using

First of all, add the css to your document's head:

<head>
  <link rel="stylesheet" href="delay.css">
</head>

Then select the desired duration or delay.

Delay.css is divided into 100ms blocks that goes from 100 to 6000 (100ms to 6s) of timming control, and two simple classes .delay-<ms> and .duration-<ms>.

This can be easily adjusted if you need less or more timming control (as you will see in the next section). Each class will delay the start of the animation by the amount of miliseconds it describes. So the class .delay-100 will delay the start of the start of the animation by 100ms and .duration-100 will force the animation to have 100ms long.

This can be easily adjusted if you need less or more timming control (as you will see in the next section).

To use it, just add the corresponding classes to your elements, for instance:

<div class="animate fadeInDown delay-1200"> <!-- This will happen first -->
  <h1 class="animate fadeInUp delay-1500">This is a header</h1> <!-- This will happen 300ms after the div has appeared -->
</div>

Try it out in your css, or see it in action.

Custom builds

To add or remove timmings from your customized version of this project, just go to the src folder and modify the file called delay.scss.

There will be 3 Sass variables, $i (which stands for increment, do not touch this!), $maxms which will be the max time your delay/duration will have and $hops which, of course, will be the size of the "jumps" between values.

Example:

$i: 0;
$maxms: 7500;
$hops: 500;

Will generate a file containing .delay- and .duration- classes that goes from 500 to 7500ms jumping in ranges of 500ms each.

  • .delay-500
  • .delay-1000
  • .delay-1500
  • ...

As this uses Sass, you'll need to build it using your own sass compiler or running the gulpfile included in the project when you download it, just type npm i (if you didn't install the dependencies) then gulp and it will create a dist folder with your alterations.

Wanna join the team?

Yeah! I'm always looking to find someone eager to contribute to this humble project! So, if you didn't yet, please read the guidelines before sending anything, this way we can discuss things more easily.

Also, all the contributors here must agree to the Contributor Covenant code of conduct.

Once you are confortable, commit away! I promisse to read it ok?

License

MPL 2.0 © Lucas Santos