Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@rcaferati/wac
Advanced tools
Readme
Tiny ~0.8kb
javascript library with cross-browser methods to handle CSS ontransitionend
and onanimationend
events. AKA css animation and transition callbacks.
Quick usage example of the onceTransitionEnd
wac method.
wac.onceTransitionEnd(element).then(function(event) {
// ... do something
});
Access the demo at https://web-animation.caferati.me
From the NPM registry
using npm or yarn just install the web-animation-club
package.
npm install --save web-animation-club
or
yarn add --save web-animation-club
For all the following examples please consider the following HTML markup.
<style>
.animated {
transition: transform 0.4s linear;
}
.move {
transform: translateX(100px);
}
</style>
<div class="container">
<div class="box"></div>
</div>
<script src="/path/to/web-animation-club.min.js"></script>
<script>
var box = document.querySelector('.box');
box.classList.add('animated');
box.classList.add('move');
onceTransitionEnd(box).then(function(event) {
// ... do something
});
</script>
import { onceTransitionEnd } from 'web-animation-club';
const element = document.querySelector('.box');
// here we're just simulating the addition of a class with some animation/transition
element.classList.add('animated');
element.classList.add('move');
// if you are using the transition css property
onceTransitionEnd(element).then((event) => {
// ... do something
});
element
<[HTML element]> html element on which the transition is happeningoptions
<[object]>
tolerance
<[integer]> used in case of pseudo-element animationsproperty
<[string]> animated property to check before calling the callbackelement
<[HTML element]> html element on which the transition is happeningoptions
<[object]>
tolerance
<[integer]> used in case of pseudo-element animationsproperty
<[string]> animated property to check before calling the callbackframes
<[integer]> Number of frames to skipcallback
<[function]> function called after the skipped framescallback
<[function]> function called after the skipped frameMIT. Copyright (c) 2018 Rafael Caferati.
FAQs
CSS controlled animations with transitionEnd, onTransitionEnd, animationend, onAnimationEnd events and frame throwing. Tiny javascript library with cross-browser methods to handle css animation/transition callbacks and event loop frame throwing.
The npm package @rcaferati/wac receives a total of 1,391 weekly downloads. As such, @rcaferati/wac popularity was classified as popular.
We found that @rcaferati/wac 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
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.