-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
display: none breaks fitting #90
Comments
So I just realised that To solve this, instead of using visibility: hidden;
height: 0; That seems to have fixed it. I guess it's a bit more performance intensize, as you're resizing stuff even when it's not shown, but it works for now. However, the question still stands, is there a way to make Fitty work together with |
I don't think there currently is. This looks like a good workaround. You could additionally set |
Hey!
I have a heading on a website that I'd like to fit, however, on small screen I split up the header in two lines. I do this by having one single line title, and a split up version:
And then hiding them base on media queries:
As scripts I have three
fitty
s for each part.This works great, but it seems to break fitty. It works fine when opening the website, but when rezising the window in such a way that it swaps between these two titlee the fitting breaks.
Is there some setting I should use to make this work?
The text was updated successfully, but these errors were encountered: