The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Fittext.js Issue

  • # February 14, 2013 at 1:59 pm

    I’m redoing my portfolio site and using fittext.js and it’s working awesome except for this one little bug.

    When I resize my browser out of a certain break point, the fittext.js isn’t working, but if I refresh the page, it works fine. I’m completely stumped.. It happens right when you come out of the break point at 640px which is going from the mobile navigation up to the smallest version of the site without the mobile nav. You have to resize it just right and you’ll see that the text isn’t adjusting.

    If anyone can help it would be greatly appreciated, it’s been driving me crazy, here is a link to the demo: []( “”)

    # February 14, 2013 at 2:39 pm

    This reply has been reported for inappropriate content.

    It not only happens at 640px but whenever there is alot transition going on so my guess is the JS takes the width on an element while the transition effect is still going on (I actually tested removing the transition and then it worked how it should)

    A fix could be to make the JS rerun 0.3sec (transition time) after a resize.

    # February 14, 2013 at 2:57 pm

    This reply has been reported for inappropriate content.

    I really don’t need that transition on there at all. I think for now I will just take it out. I think my frustration got in the way of seeing this clearly. Thank you !!!!!

    # February 14, 2013 at 2:58 pm

    This reply has been reported for inappropriate content.

    Any time :)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed