Socket
Book a DemoInstallSign in
Socket

on-transition-end

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

on-transition-end

Cross-browser `transtionend` event listener.

1.0.5
latest
Source
npmnpm
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

On Transition End NPM version Build status

Cross-browser transtionend event listener:

import onTransitionEnd from 'on-transition-end';
// or
const onTransitionEnd = window.onTransitionEnd;

const element = document.getElementById('transitioning-element');
const expectedDuration = 1000;

// callback:
onTransitionEnd(element, expectedDuration, () => console.log('done'));

// promise:
onTransitionEnd(element, expectedDuration)
  .then(() => console.log('done'));

// es7 await:
await onTransitionEnd(element, expectedDuration);
console.log('done');

Demo

http://codepen.io/jshanson7/pen/avEZry?editors=001

Installation

npm install on-transition-end

Then reference either dist/on-transition-end.js or dist/on-transition-end.min.js in your html, or import on-transition-end. If a module environment is not detected, onTransitionEnd will be exported to window.onTransitionEnd.

Contributing

Clone repo, cd into it.

npm install && npm start

Building

npm run build

Testing

Run the tests on your browser here.

npm test && npm run test-browser

License

MIT

Keywords

transtionend

FAQs

Package last updated on 20 Oct 2015

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.