-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaling svg using animate makes the svg blurry #83
Comments
Hey! This issue occurs because of two things:
The easiest way to fix this would be to use following trick:
image.place = .scale(sx: 0.7, sy: 0.7) And then scale it back to the original size during animation: let toTransform = Transform.identity This will fix blurring. |
@ystrot any plans of implementing the scale (from small to big) anytime soon? |
Hi @KarimFikani, |
@vhailor13 that is great news thx! |
It is a bit tricky to create optimised version without blurring. But we are still looking into it. I can suggest to use Contents Animation, from master branch, you can use it like this:
|
Hello @KarimFikani , anti-blur logic was added recently to separate branch, you can test it via pod pod "Macaw", :git => "https://github.com/exyte/Macaw.git", :branch => 'animation_blur_fix' |
@vhailor13 it works! Thanks a lot! Will do more tests to see the performance and test with other svgs but the current solution looks very good 👍 |
I'm trying to make the SVG animate from one transform matrix to another. Mainly my transform matrices contain just scaling. When I run the following code and tap the svg becomes blurry when scaling up but at the end of the animation it would look correct. The problem is the in-between that is messed up. Is there a way to solve this problem? Am I doing the animation properly?
Example:
The text was updated successfully, but these errors were encountered: