Hey, guys! I’m currently trying to build my very first portfolio (yay!) and I’m facing an interesting problem. Everytime a page is loaded the font looks thicker and then suddenly and very quickly it loads all the font properties I setted up on Webflow’s Designer.
Hi @Luciano_Infanti, thanks for getting back to me. Yes, sorry, I was not exactly sure from the description which case it was, and that font was just round enough for my bad eyes.
Say, couldn’t you put a transition on that so that the opacity change is a quick .2 second transition, reducing the BOOM effect after WF finishes loading? That’d be cool.
Hi @lux, I think the real solution will be for Webflow to build in support for this browser behavior, and I expect an update for that at some point. I like the creative idea though, if you try that, let me know how it worked for you.
No problem! Cool!
Just in case, remember that setting the transition on the html element without a
class and being specific to transition only the opacity is a lean way to
get a great effect and not have potential performance downsides. So be sure
to do it that way. Something like html {opacity:1;transition:opacity .2s ease .2s;} (plus vendor prefixes,
sadly)
added in there should help.
Added the .2s delay at the end to make sure it’s seen.
edit: Also, set the opacity to the html element, not all of the children, that’s a lot of calculations. For example: html.wf-loading body {opacity:0;} instead. Let us know if that helps.
Cheers!