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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ember-css-animation-triggers

v0.2.0

Published

Ember components for triggering CSS animations.

Readme

Ember CSS Animation Triggers

Ember CSS Animation Triggers is an Ember addon with a collection of components for triggering CSS animations.

Installation

As an addon

  • ember install ember-css-animation-triggers

For development

  • git clone this repository
  • npm install
  • bower install

Usage

Ember CSS Animation Triggers currently includes two components: animate-on-change and animate-on-interval.

These components animate their content by applying a CSS class with an animation to their elements and removes it again after the animation is finished. Note that this addon doesn't provide any ready-made CSS animation classes; these have to be declared separately.

The components' individual usage is detailed below.

Component: animate-on-change

The animate-on-change component animates its content when a particular value changes.

In the example below, the CSS class grow will be applied to the element when the value of count changes:

{{#animate-on-change animationClass="grow" observedValue=count}}
  {{count}}
{{/animate-on-change}}

Which can look like this:

Example result of using animate-on-change

See tests/dummy/app for the complete implementation of the example above. It can be previewed by running the demo app.

The public interface of the component is given in the table below.

| Property name | Type | Default | Description | | ---------------- | ------- | ------- | --------------------------------------------- | | animationClass | String | null | Name of the CSS class defining the animation. | | observedValue | * | null | Value to observe. | | enabled | Boolean | true | Whether the animation should run. |

Component: animate-on-interval

The animate-on-interval component animates its content at a particular time interval.

In the example below, the CSS class hop will be applied to the component's element with pauses between 2 and 3 seconds between each animation, but it will be applied within 1 second the first time the animation is run.

{{#animate-on-interval
   animationClass="hop"
   minWait=2000
   maxWait=3000
   minInitialwait=0
   maxInitialwait=1000}}
  Hello!
{{/animate-on-interval}}

See the demo app in tests/dummy/app for en example of how to achieve the following effect:

Example result of using animate-on-interval

The public interface of the component is given in the table below.

| Property name | Type | Default | Description | | ---------------- | ------- | ------- | -------------------------------------------------------------------------- | | animationClass | String | null | Name of the CSS class defining the animation. | | minWait | Number | 1000 | Minimum time (ms) to wait before showing the animation again. | | maxWait | Number | 2000 | Maximum time (ms) to wait before showing the animation again. | | minInitialWait | Number | 500 | Minimum time (ms) to wait before showing the animation for the first time. | | maxInitialWait | Number | 1000 | Maximum time (ms) to wait before showing the animation for the first time. | | enabled | Boolean | true | Whether the animation shuld run. |

Demo App

  • Run ember serve from the addon root directory.
  • Visit http://localhost:4200.

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.