Jump to content
Search Community

transition in old IEs

George Carlin test
Moderator Tag

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

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

  • 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

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.
×
×
  • Create New...