auswertung
bootstrap
data-table
dist
node_modules
@popperjs
after-transition
bootstrap
bootstrap-icons
component-emitter
component-query
css-ease
css-emitter-component
event-component
has-transitions
test
.npmignore
History.md
Makefile
Readme.md
component.json
index.js
package.json
has-translate3d
move-js
scrolling-tabs-bootstrap-5
transform-property
.package-lock.json
index.html
classes
config
controller
dashboard
datepicker
jquery
js
language
lib
media
mpdf
sql
survey
templates
templates_c
test
test2
.gitignore
config.inc.php
todo.txt
has-transitions
Determine if an element has transitions
Installation
$ component install anthonyshort/has-transitions
API
var hasTransitions = require('has-transitions');
var cssEmitter = require('css-emitter');
if(hasTransitions(el)) {
cssEmitter(el).bind(onTransitionEnd);
}
else {
onTransitionEvent();
}
Methods
hasTransitions([el])
Determine if an element has any transition properties. If the browser doesn't
support transitions this will always return false. el
defaults to document.body
.
Properties
hasTransitions.support
Boolean for whether the browser supports transitions at all
hasTransitions.property
Get the prefixed property name to use for transitions
License
MIT