Jump to content
Search Community

Blurred image on scale animation, regardless of force3D: false

gringo_pablo test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hi,

 

I know there are numerous posts about this topic on the forum and I apologize for posting one more, but I reviewed all of them and couldn't find a solution working for me.

 

I have an image that is small at the beginning at the page and then reaches the viewport's width by the end of the page.

 

I added force3D:false hopping that it would resolve the issue of blurred animation, but it didn't.

I can't use the second solution consisting in putting the full image and using a "from" animation, because the image must be the viewport's width, which means it doesn't have absolute width.

 

Any idea?

 

See the Pen LYMKMVy by gringo_pablo (@gringo_pablo) on CodePen

Link to comment
Share on other sites

Hi,

 

I'm not seeing any blur in the image, maybe I'm missing something here 🤷‍♂️

 

Have you tried instead of using the SVG on an image tag, just use the SVG paths in your code? Since you already have the image data as SVG paths I'd go that route. That most likely will prevent any blurriness in your element.

 

Happy Tweening!

Link to comment
Share on other sites

Hi,

 

Maybe set the image/element to use the full width, then use a set() instance to reduce it's scale and then create an instance that takes it back to scale 1:

gsap.set(image, {
  scale: 0.135,
  transformOrigin: "bottom left",
});

gsap.t(image, {
  scale: 1,
  transformOrigin: "bottom left",
  scrollTrigger: {
    // ScrollTrigger config here
  },
});

I can see the issue on an iPad on both chrome and safari, my best guess is that the browsers are taking a snapshot of the image and scaling it up messes the resolution of course. Now as far as I can tell that shouldn't happen at all with raw SVG on the HTML code.

 

Hopefully this helps.

Happy Tweening!

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