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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:17:04+00:00 2026-06-07T10:17:04+00:00

Is it possible to animate the re-sizing of a frame in html? I have

  • 0

Is it possible to animate the re-sizing of a frame in html?

I have a webpage where there a are two frames horizontally stacked (say 500px, remaining). Upon click of a ‘minimize’ image, the frame to the left is shrunk to around 100px. Is it possible to animate this shrinking via jquery/javascript/css?

  • 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-07T10:17:06+00:00Added an answer on June 7, 2026 at 10:17 am

    If you are seeking to animate inner frames then I would go with Dr Molle’s answer. If, however you are seeking to animate a frameset, you will have to do it manually. The example below illustrates. To examine it, you ‘d better use a local web server to avoid problems with cross – domain restrictions (at least in Chrome, haven’t tested it anywhere else…).

    frame1.html

    <html>
        <body>
            frame 1
            <br />
            <a href='#' class='minimize'>Minimize</a>
    
            <script type="text/javascript" 
                src="http://code.jquery.com/jquery-latest.min.js"></script>
            <script type='text/javascript'>
                $(function () { 
                    $('.minimize').click(function (evt) {
                        evt.preventDefault();
                        window.parent.minimize();
                        return false;
                    });
                });
            </script>
        </body>
    </html>
    

    frame2.html

    <html><body>frame 2</body></html>
    

    frameset.html

    <html>
        <head>
            <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
            <script type='text/javascript'>
                $(function () { 
                    var minimizeInterval = null;
                    var current = 500;
                    var pace = 15;
                    var stop = 100;
    
                    window.minimize = function () {
                        minimizeInterval = setInterval(function () {
                        console.log('minimizing...');
                            $('frameset').attr('cols', current + ',*');
                            current -= pace;
                            if (current < stop) 
                                clearInterval(minimizeInterval);
                        }, 10);
                    };
                });
            </script>
        </head>
    
        <frameset cols="500,*">
            <frame id='frame1' src="frame1.html"></frame>
            <frame id='frame2' src="frame2.html"></frame>
        </frameset>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have html input <input id=txtSearch value=Search... type=text/> Is it possible to animate the
Is it possible to animate CSS pseudo-classes? Say I have: #foo:after { content: '';
Possible Duplicate: jQuery: how do I animate a div rotation? I have a div
Is it possible to animate something that you have drawn using core graphics in
Is it possible to smoothly animate a changed width property of CGContextFillRect over say
Possible Duplicate: jquery.animate background-position doesn't work I have a small script that animates background
How do I animate between two PNG images in jQuery? Is this possible? Something
Possible Duplicate: A non-nested animation sequence in jQuery? I have an html/css/js iOS app
Is it possible to animate the BringIntoView method in WPF? We want a nice
Does any one know if its possible to animate app.current.mainwindow.width so that you get

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.