I have a problem with our custom Font and scaling on different browsers etc. I have tried to make the Font dependent on vh instead px but it does not seem to improve anything.
this is how it looks on chrome
Could you help me understand your layout? I opened NEW ORDER FINAL NAV, and it looks like your logo is actually two SVGs (Image and Image 40). Were these originally text, or always an image file? In other words, is the “font” that you set to vh actually referring to an image?
If you’re working with actual text, adding custom CSS to set backface-visibility to hidden should fix the rendering issue.
backface-visibility: hidden;
If you want to continue using images, my solution is the same as Dram’s approach. Your issue is browser dependent; even SVGs can become pixelated in some browsers when they’re scaled higher than 1. So, you’ll need to work backwards and resize each image to match its largest scale (the size it should be at the beginning of your animation). Upload these new versions, and scale its ending point (the small logo) downwards. I think you had the large version scaled to 5, so instead, it should be scaled to 1 at the start of the animation/end at a scale of .2.
Thanks @dram and @tholl for helping out! I get both ways of fixing but it seems that the backface-visibility could be the easier fix for what I want to achieve
@tholl
I restored the font version via backup . (I indeed used font initially) Unfortunately since I have never really used code before - where and how do I add this custom CSS code and do I only use this line or do I need to add sth else? Sorry for having to ask this stupid question.
I’m pretty sure it will also work if you go to your Webflow settings (Add Custom HTML & CSS) and put it there (if you want to implement across your entire site/if the classes don’t change). I’ve also read that Safari doesn’t respond well to vh/vw units, so define sizing with pixels.
I’d recommend saving your current site as a backup in Webflow if this doesn’t work (and, in which case, it’d be easiest to revert to your current site and change the image sizes via an external software like Photoshop). I had a similar problem with text on my site, and though backface-visibility resolved it, it’s better to be safe/avoid wasted time through saving a backup!
I implemented your solution on the home and also checked backface hidden on project page and it did not improve anything for me unfortunately. Just checking if I did it correctly, I added:
…
.class=“new-header-nav”, .class=“order-header-nav” {
backface-visibility: hidden;
}
…
Can you confirm that I added it the correct way? If so then I will have to rework the image. I assume Dram’s approach would include changing the svg format to a jpeg and then add it with a bigger resolution. I cannot see this working with adding it as an svg - correct?
Many thanks again!!
Best
Simon
thanks for the hint with the backface - much easier for me that way J However it is still blurry in Safari. So I guess I have to implement the 1 and 0.2 approach.
I am a bit confused now how to do this. I initially have to make the font bigger, correct? When I scale the font 5 times bigger (to 300 px) and then try to scale it down to 0.2 for the initial state of the animation (based on page scroll) I totally lose control over the animation and especially the placement of the logo.
Is there a different way to do this animation where I do not run into placement issues or is there a tutorial or sth where I could learn how to do this properly?