Results 1 to 2 of 2

Thread: Smooth div resizing

  1. #1
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Smile Smooth div resizing

    I have a div which has a min-width and min-height on it, which is always smaller in one way (in width or height) than the containing div. However, the containing div pre-loads, so for a while the smaller div is visible.

    What i'd like is for the smaller parent div to smoothly resize to fit the content in the container div, rather than simply jumping to the higher width/height.

    Is this possible in js?

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    Not really... My suggestion is to make the page smaller so it downloads faster and the delay isn't noticeable. A cheap imitation of what you want is possible, but it would make the content totally inaccessible to users without JavaScript.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •