Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
George Carlin

transition in old IEs

Go to solution Solved by Jonathan,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

If you talking about animating x and y ... just use top and left. Some more specifics will help to get more specific answers.

Link to comment
Share on other sites

Hello George Carlin

 

You can do a conditional if check if the browser is IE9 and below.. if so then animate top and left, otherwise use x and y.

 

You could use this to check via javascript using feature detection:

 

http://stackoverflow.com/questions/7690676/javascript-the-best-way-to-detect-ie/20201467#20201467

var docMode = document.documentMode,
    hasDocumentMode = (docMode !== undefined), 
    isIE8 = (docMode === 8),
    isIE9 = (docMode === 9),
    isIE10 = (docMode === 10),
    isIE11 = (docMode === 11);

// browser is IE
if(hasDocumentMode) {
     if(isIE11){
         // browser is IE11
     } else if(isIE10){
         // browser is IE10
     } else if(isIE9){
         // browser is IE9
     } else if(isIE8){
         // browser is IE8
     }
}

:)

  • Like 1
Link to comment
Share on other sites

actually I was more concern about the easing matters, but then I did a test with greensock on IE 8 and it worked good.

I'm just a bit curious to know how easings work on IE 8 when it does not support CSS transitions!

Link to comment
Share on other sites

  • Solution

GSAP uses and creates its own easing functions.

 

http://greensock.com/ease-visualizer

 

The CSS transition easing functions are unrelated, since that easing is only used for CSS animations and CSS transitions that are based on the CSS easing spec.

 

https://drafts.csswg.org/css-transitions/#transition-timing-function-property

 

Usually with easing the various functions used are equivelent to those in the CSS transition-timing functions. But GSAP also has other custom easing functions not found in the CSS spec. Like SlowMo, Bounce, Rough, Elastic .. etc..

 

You can see all of GSAP Easing Docs here:

 

http://greensock.com/docs/#/HTML5/Easing/

 

:)

  • Like 3
Link to comment
Share on other sites

Also, GSAP never uses CSS transitions or CSS animations. Properties are applied to inline styles via JavaScript which allows for superior control, flexibility and browser support.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×