evandrolg / transitionend Goto Github PK
View Code? Open in Web Editor NEW:dizzy: TransitionEnd is an agnostic and cross-browser library to work with transitionend event.
:dizzy: TransitionEnd is an agnostic and cross-browser library to work with transitionend event.
I have problem to trigger transitionEnd for IE. I believe IE use the transitionend instead of transitionEnd
transintionend_poly.js
then after I changed it to
It starts to work for IE. Any ideas?
First of all, thanks for a great and focused tool I really needed. :)
In transitionEnd_full.js line 83 you use Array.indexOf, which IE8 does not have by default.
If you want IE8 to continue execution after that line, either use a polyfill like this:
Array.prototype.indexOf = function(obj, start) {
for (var i = (start || 0), j = this.length; i < j; i++) {
if (this[i] === obj) { return i; }
}
return -1;
}
or rewrite line 83:
positonElement = this.list.indexOf(element);
to something like:
positonElement = -1;
for (var i=0; i < this.list.length; i++) {
if (this.list[i] === element) {
positonElement = i;
break;
}
}
Hi, great little utility you have here. I have two questions:
Can you list browser support in the readme? It's not immediately clear how far back the support goes in IE. Some polyfills only support unifying the event but not older browsers. What is the support for this one?
Is it possible to publish this on npm? Would love to use it and manage updates through our npm ecosystem setup in the project.
Thanks for your hard work on this!
It seems like this polyfill doesn't work properly with Opera 38. It detects that it should be using webkitTransitionEnd
but that event never fires (only transitionend
does).
Since https://github.com/EvandroLG/transitionEnd/blob/master/src/jquery.js appears to only be used in the tests, perhaps it should be moved to test/js/jquery.js
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.