Comments (7)
I addressed this in an earlier pull request. I don't think it's in yet.
On Friday, September 7, 2012 at 7:42 AM, Magnus Holm wrote:
"-ms-transition" in document.documentElement.style returns false, not undefined in IE9, so the script thinks that IE9 supports CSS transitions.
This is what causes #19 (#19).β
Reply to this email directly or view it on GitHub (#25).
from responsive-carousel.
Link? This is broken in so many ways that I'm surprised no-one has noticed it:
Here's the code:
var prefixes = " -webkit- -moz- -o- -ms- ".split( " " ),
supported = false;
while( prefixes.length ){
if( prefixes.shift() + "transition" in document.documentElement.style !== undefined ){
supported = true;
}
}
return supported;
- Why not just use
return true
inside the loop instead of using a temporary variabel? - The "in" operator always returns either true/false. It can never be
undefined
. This means that the condition will always be true. - CSS attributes are JSified, so
"-moz-transition" in document.documentElement.style
is false in all browser."MozTransition"
on the other handβ¦
Here's a working version:
var prefixes = " Webkit Moz O ms ".split( " " );
while (prefixes.length) {
if (prefixes.shift() + "Transition" in document.documentElement.style) return true;
}
return false;
from responsive-carousel.
I have 2:
and
from responsive-carousel.
Well, 1ff143d disables CSS3 transitions in Firefox, Opera and IE versions that actually support CSS3 transitions.
from responsive-carousel.
I just tested against FF15 without any issues and had previously tested it in the others. I will double check it again today while I am working on the code.
from responsive-carousel.
Updated code for the test has been added to my pull request.
from responsive-carousel.
No longer applicable, thank you!
from responsive-carousel.
Related Issues (20)
- Transitioning on transparent slides
- Shoestring compatibility? HOT 2
- Direction of slide transitions incorrect in IE 10 and IE 11
- About released files
- Re-scope selectors for the fade CSS so that it can coexist with other transitions in a project
- goto event should wait until after the transition completes. or we need an aftergoto event.
- Improve API docs on readme
- Carousel with only 2 slides won't transition correctly with "slide" HOT 2
- inactive "fade" carousel slides can obscure interaction
- touch: if you tap next/prev link during a transition, it can disable those links semi-permanently HOT 2
- add a class once mousdown/touchstart/pointerdown interaction occurs so that the transition speed can be increased for next/prev and drag-snapping
- Update to current version of JQuery?
- Carousel Slide sprints from the start to finish on loop. HOT 1
- PrevNext on top of PrevNext and Styling HOT 1
- release with dist files HOT 1
- Pagination slide animation issue HOT 1
- show more than 1 image
- Newbie: Usage with jQuery mobile?
- Slide transition and pagination incompatibility
- move build to common js?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from responsive-carousel.