New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

animation-events

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animation-events

Bind and unbind animation events.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

animation-events

Bind and unbind animation events.

Installation

Component:

component install digitaledgeit/js-animation-events

Usage

var events = require('animation-events');

var el = document.querySelector('.js-ball');
events
    .bind(el, 'start', function(event) {
        console.log('start', event);
    })
    .bind(el, 'end', function(event) {
        console.log('end', event);
    })
    .once(el, 'iteration', function(event) {
        console.log('iteration', event);
    })
;

API

Methods

.supported

Get whether animations are supported by the browser.

.has(el)

Get whether an element has an animation applied.

.bind(el, event, callback)

Add a callback for an animation event (start, end or iteration).

.unbind(el, event, callback)

Remove a callback for an animation event (start, end or iteration).

.once(el, event, callback)

Add a callback for a single animation event (start, end or iteration).

Building

browserify index.js -r ./index.js:animation-events > build/build.js

Testing

mochify

FAQs

Package last updated on 01 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc