[GSAP] compatibilité

Par LesTutossUE4, il y a 12 ans


Bonjour,
Quelqu'un serait-il me dire quels sont les versions d'IE, Firefox, Chrome, Safari, Opéra..etc qui sont compatible avec GSAP ?
Merci d'avance.

10 réponses

LesTutossUE4, il y a 12 ans

Personne ne sait ? :(

antho07, il y a 12 ans

Trouvé sur la FAQ du site GSAP:

Which browsers work with the JavaScript version of GSAP?
GSAP itself is pure JavaScript and should work in virtually ALL browsers. The CSSPlugin tweens css-related values and its compatibility is based on which properties you use in your tweens. GSAP wasn’t intended to solve all browser incompatibilities, but it does implement wizardry for critical features like opacity, transforms (rotation, scaleX, scaleY, skewX, skewY, x, and y), and transformOrigin so those should work in all major browsers even back to IE6. Firefox doesn’t support backgroundPositionX or backgroundPositionY, so those specific properties won’t work but backgroundPosition will for virtually all browsers. There is NOT a predetermined list of css properties that you can tween – the platform will attempt to tween ANY property you pass in. If it is numeric, it will tween it. If it isn’t numeric and it isn’t a recognized special property, CSSPlugin will just set the property to the value you provide (without tweening it). So, for example, if you try to tween to display:"inline", that isn’t a tweenable property but it will still be set accordingly during the tween, so feel free to use that to your advantage.

LesTutossUE4, il y a 12 ans

Mais ça ne me dit pas vraiment quels sont les versions compatible. Exemple, sur IE 8 tout fonctionne. Sur IE 7 mes animations ne fonctionnent pas.
Ce que j'aurais voulu c'est un tableau que quelqu'un aurais trouver quelque part, ou ce serais amuser a vérifier toutes les versions de tout les navigateurs pour le faire ^^
De ce style la :

Car j'ai eu beau chercher je n'ai rien trouver. Et malheureusement je comprend l'anglais mais je ne le maîtrise pas totalement :/

LesTutossUE4, il y a 12 ans

Up :( !

antho07, il y a 12 ans

T'as toutes les réponses dans le texte..

GSAP itself is pure JavaScript and should work in virtually ALL browsers
those should work in all major browsers even back to IE6.
There is NOT a predetermined list of css properties that you can tween – the platform will attempt to tween ANY property you pass in.

En gros, c'est les propriétés CSS que tu vas animer qui vont faire que cela va fonctionner ou non sur tel ou tel navigateur. La comptabilité dépend donc de l'animation, pas du js.

LesTutossUE4, il y a 12 ans

Oui mais l'animation ne se lance même pas sur IE 7 (il me semble).

antho07, il y a 12 ans

tu animes quoi comme propriété? tes propriétés css supportées par IE 7?

LesTutossUE4, il y a 12 ans

div avec position:absolute; J'anime sur le left

antho07, il y a 12 ans

je crois que position absolute ça marche pas sous ie7..

LesTutossUE4, il y a 12 ans

ah d'accord merci :)