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 9244705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:06:06+00:00 2026-06-18T09:06:06+00:00

I have a grid of elements that need to be interactive. When one of

  • 0

I have a grid of elements that need to be interactive. When one of the divs is clicked, it will grow to a larger size. For most elements “growing” a div from the bottom right corner is acceptable:

$(.my-div).animate({ width: "379px", height: "204px" });

However, there are some cases in which “growing” from the bottom right won’t work with the rest of the application.

I may need to grow from the top-right, for example. Any ideas? I like the simplicity of animating to a new width/height, but I’m not sure if it can achieve an effect other than dragging from the bottom-right corner.

Thanks in advance 🙂

  • 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-18T09:06:07+00:00Added an answer on June 18, 2026 at 9:06 am

    There are a couple ways you could do it, either with jQuery animate like you mentioned, or CSS transitions. They would look something like

    .child.clicked {
      height: 100px;
      width: 300px;
      transition: width 2s, height 2s;
    -moz-transition: width 2s, height 2s;
    -webkit-transition: width 2s, height 2s; 
    -o-transition: width 2s, height 2s; 
    }
    

    or

      $('.child2').click(function() {
      $(this).animate({
        width: ['300px', 'swing'],
        height: ['100px', 'swing']
          }, { duration: "slow", easing: "easein" });
      });
    

    Here is an example to toy with http://jsbin.com/uxicil/1/edit

    There are a number of easing properties and things to tweak until you get it exactly how you want.

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

Sidebar

Related Questions

I have a grid that when some cell is clicked, it blinks (thanks to
I have a jQuery AJAX data grid that loads a list of elements from
I have Json data that has children elements. I need to bind the store
I have 2 elements that both need to be dragged. The simplified markup is
I have a grid of a variable number of elements. Say 5 images per
We have a form with five <input type=file/> elements that is in production and
I have two resizable elements and I need them to resize Synchronously maintaining the
i have a grid and adding elements to is in jquery like below: $('#MyGrid
I have a setup where I have a grid of elements and when I
I have been working on a form that presents some specific elements in a

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.