Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:49:28+00:00 2026-06-08T10:49:28+00:00

I have a container div that holds about 20 more divs that float left.

  • 0

I have a container div that holds about 20 more divs that float left. When I resize the parent div with a javascript animation using Tween.js the floats don’t reflow to the new size unless I mouse over one of the divs.

It seems like something is preventing the page from refreshing.

I’m thinking maybe there is a way through javascript to force the display to update?

UPDATE:

I’ve put it on JS Fiddle:
http://jsfiddle.net/mattlundstrom/fNUhn/

Click any thumbnail to toggle the animation.
This version uses TweenLite to animate the “Left” CSS of the #project-container. Notice how you must move your mouse after the animation to get the container’s contents to reflow.

I get this result in Safari 5+ OSX and Chrome 20+ OSX. Works as expected in Firefox 13.0 OSX.

UPDATE 2

Video of what I’m seeing:
http://f.cl.ly/items/1R1n2s0U3I3c1M3s2K0T/lundstrom_float_issue.mov

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:49:30+00:00Added an answer on June 8, 2026 at 10:49 am

    I was able to recreate your issue just as you said. It seems that it is an issue with webkit redrawing or measuring the elements after an animation or transition.

    This isn’t the best solution by any means, but for the time being at least it will work and hopefully what I found will help other people to be able to find out more.

    If you add an onComplete to the animation, and trigger the .project mouseleave, it looks to work fine:

    function completeAnimate(){
            $('.project').trigger('mouseleave');
        }
    
        function contract(){
    
            // PROJECTS CONTRACT RIGHT
            TweenLite.to($('#projects-container'), .5, {css:{left:"300px", opacity:".5"}, ease:Expo.easeInOut, onComplete: completeAnimate});
        }
    

    So here is my jsfiddle which has a few tests and other animation tests so that you can see some of what I tried.

    jQuery animate() and css keyframe animations have the same result as the Tween code you are using, HOWEVER, a straight style update works fine.

    $('#projects-container').css('left','300px'); 
    

    No issues with that at all, but of course, no animation either.

    Some other things I noticed was that if you take out the .project event bindings, it still doesn’t redraw correctly, however if you move you mouse it still doesn’t. It simply stays that way.

    I also tried forcing an element redraw using a few tricks you can usually use to force a redraw. I tried this oncomplete and at intervals after the animation begins, but had no luck with any of it.

    You can also combine the two tweens into one with the properties on both, just an FYI.

    Hopefully this will help someone find the true issue that’s going on with the webkit transitions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page with a container div that holds three additional divs as
I have a container div that holds two internal divs; both should take 100%
I have a container div that holds many child divs. One of the divs
I have a parent div .photo_container that holds an img , and stretches to
I have an animation on a partially hidden div container that will execute when
I have three divs, within a content div. Container width 70%. Within that I
I'm making a webpage where I have a div (container) that is a parent
Title says most of it. I have a div container that holds all the
I have a a few divs .photo_box that contains a div .photo_stats_title which holds
I have a div that will serve as container to other element, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.