
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
longest-transition
Advanced tools
Cross-browser longest transition getter.
This module reads all transitions of an element and provides the longest one.
import longestTransition from 'longest-transition';
// or
const longestTransition = window.longestTransition;
const element = document.getElementById('transitioning-element');
const time = longestTransition(element);
/*
`time` will be something like:
{
property: 'height',
duration: 200,
delay: 100
}
Note that time is in milliseconds
*/
$ npm install longest-transition
longestTransition(element)
element: The element that is transitioning.{
property: 'height',
duration: 200, // milliseconds
delay: 100 // milliseconds
}
$ npm test
$ npm test-cov to get coverage report
Released under the MIT License.
FAQs
Cross-browser longest transition getter
We found that longest-transition demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.