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

  • SEARCH
  • Home
  • 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 8744197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:48:24+00:00 2026-06-13T11:48:24+00:00

How would I go about animating a div’s change in height and width? There

  • 0

How would I go about animating a div’s change in height and width? There would not be an event that would trigger the animation, but an animation that would occur anytime the size of the (this) div changed. The idea is to animate the div’s change in size when more or less content is in the div.

  • 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-13T11:48:25+00:00Added an answer on June 13, 2026 at 11:48 am

    In CSS3 you can set ‘transition’ property on any element, which will provide you with the effect that you want, without the need to worry about event triggering.

    You can specify the property, duration and function (type) of the animation, as shown below:

    #divWithAnimation
    {
        transition: height 1s linear;
    }  
    

    Although the property “transition” is not supported in IE, other browsers use their own prefixes, as follows:

    #divWithAnimation
    {
      -webkit-transition: height 1s linear;
      -moz-transition: height 1s linear;
      -ms-transition: height 1s linear;
      -o-transition: height 1s linear;
      transition: height 1s linear;
    }
    

    You should use all of these in your stylesheet, in order to provide support for all the available browsers. More info and tutorials about transitions (and other cool features of CSS3) can be found on the W3Schools website.

    There is a very nice CSS3 generator that can generate the code for all the browsers. Would definitely recommend it.

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

Sidebar

Related Questions

How would i go about making an animation of a rocket move to another
I would like to know how I would go about altering the HTML that
How would I reverse a double animation in Silverlight on an event? For example,
How would you go about creating a timeline animation for an iPhone or iPad
I want to create a <div> animation very much like this site: http://www.weareinstrument.com/about/ .
I am wondering how I would go about animating a UIView's to a specific
I have done the candle animation tutorial here but I would like to save
How would I go about animating open a textviewto expand when clicked? So if
I would like 'about' to route to 'abouts/1' I tried this: match 'about' =>
Any ideas how I would go about writing a javascript method to insert an

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.