Jump to content
Search Community

Why does a grayscale filter set to 0 improve animation in Firefox!?

Thomas James Thorstensson test
Moderator Tag

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

 

I have an animation where text, Source Sans Pro, is moving downwards as it fades in. It works fine now but just wondering why.

 

In latest version of Firefox, if I add this the animation is smooth:

 

-webkit-filter: grayscale(0%);
filter: grayscale(0%);

 

If I remove the above, the text moves in a jerky fashion.

 

I used this "fix" before, and it always sorts Firefox out. But now I just wonder Why?

 

Thanks!

 

 

Link to comment
Share on other sites

Hey Snoop,

 

It'd be helpful to have a minimal demo of what you're suggesting. Just guessing, I'd guess it's because filter creates a new compositing layer? I'm also guessing that adding a translate3d instead would reproduce the same effect. You can read more about compositing in this Smashing Magazine post (though the ladder half is a bit too long for me). 

  • Like 3
Link to comment
Share on other sites

9 minutes ago, ZachSaucier said:

Hey Snoop,

 

It'd be helpful to have a minimal demo of what you're suggesting. Just guessing, I'd guess it's because filter creates a new compositing layer? I'm also guessing that adding a translate3d instead would reproduce the same effect. You can read more about compositing in this Smashing Magazine post (though the ladder half is a bit too long for me). 

 

Hey, its Snoop,

 

Thanks for the article link. I was not aware that it too creates a compositing layer like the translate3d fix. Thanks for pointing this out.

 

I think I'm gonna go and have some coffe now.

 

Thanks

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...