Jump to content
Search Community

Issue with TweenMax scaling my image while my css blur filter is animating

hyconnect test
Moderator Tag

Go to solution Solved by ohem,

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

My image is scaling while I have a CSS filter animation running. I am running a filter blur on an image so that as the images scales, the images become blurred. There is a strange back-shadow inset appearing as the images scales and the image seems to shake.

 

I'd like to get rid of the box-shadow and the shake if possible. Any push in the right direction will be much appricated.  

 

Thanks!

 

 

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums,

 

Nice banner!

For supplying demos it really helps if you reduce it as much as possible so that we don't have to sift through all the code and figure out which elements are being tweened by what.

 

I did a quick test of scaling and blurring just with TweenMax.

 

http://codepen.io/GreenSock/pen/OXVOQm?editors=0010

Seems it's a bit of a struggle for chrome and there is some weird pixel snapping. Unfortunately that is out of our hands. 

 

I noticed you are building your sequence using a bunch of TweenMax tweens and delays. Have you tried our timeline tools? They will make animations like that so much easier to code and manage.

 

Check out:

http://www.greensock.com/timelinelite (watch the sequencing video)

and the video here: http://greensock.com/position-parameter

  • Like 1
Link to comment
Share on other sites

Chrome seems to handle SVG blurs more smoothly than CSS: 

See the Pen GJPjjQ by jonathan (@jonathan) on CodePen

 

And SVG filters work in IE unlike CSS filters, which is another plus.

 

 

 

hyconnect, I noticed you're animating your blur using CSS transitions (starting on line 124 of your CSS) which is another potential issue.  I think generally CSS animations shouldn't be mixed with GSAP because it can cause conflicts.

  • Like 3
Link to comment
Share on other sites

Thank you for replying so fast and for the helpful advice!

 

I was able to get a smoother transition when using SVG blur, the box- shadow issue is no longer a problem. There is still a pixel staggering effect going on when the image begins to blur. 

 

I tweaked the code from my previous pen to help others wth the issue I had. 

 

Codepen Link

 

See the Pen EyjpBY by team (@team) on CodePen

 

Here's the same Codepen, but I'm using Base 64/DATA URL.

 

See the Pen VjLGZm%C2%A0 by team (@team) on CodePen

Link to comment
Share on other sites

  • Solution

Thank you for replying so fast and for the helpful advice!

 

I was able to get a smoother transition when using SVG blur, the box- shadow issue is no longer a problem. There is still a pixel staggering effect going on when the image begins to blur. 

 

I tweaked the code from my previous pen to help others wth the issue I had. 

 

Codepen Link

 

See the Pen EyjpBY by team (@team) on CodePen

 

Here's the same Codepen, but I'm using Base 64/DATA URL.

 

See the Pen VjLGZm%C2%A0 by team (@team) on CodePen

It's smoother with a faster/shorter tween and a more intense blur: 

See the Pen oLXPwZ by anon (@anon) on CodePen

  • Like 1
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...