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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:23:24+00:00 2026-06-12T09:23:24+00:00

I was playing for a long time today, trying to accomplish something without knowledge.

  • 0

I was playing for a long time today, trying to accomplish something without knowledge.
However I have made an JS fiddle with this explanation, so I hope someone can help me.

Let’s get to the point.

I have 4 small boxes. Each box is 15x15px just like in this Fiddle.

<div class="js-fiddleWrap">
    <div id="letterA">Letter A opened-content.</div>
    <div id="letterB">Letter B opened-content.</div>
    <div id="letterC">Letter C opened-content.</div>
    <div id="letterD">Letter D opened-content.</div>
    
    <nav class="collapseMenu">
        <ul>
            <li>A</li>
            <li>B</li>
            <li>C</li>
            <li>D</li>
        </ul>
    </nav>
</div>​

On click of one box animation starts and box becomes higher(longer) and gets 45px instead of 15px. It also goes up so it looks like it is rising using this script.

$(document).ready(function() {
    var $collapseMenu = $('.collapseMenu li');

    $collapseMenu.on('click', function() {
        $(this).animate({
            'bottom': '30',
            'height': '45',
        });
    });
});​

Although I made this, I think it’s wrong. After this animation, theres more that I wasn’t able to accomplish.

I have some hidden content just like in fiddle. Example A, B, C and D content.
So each box that is clicked rise up, reveal content and then hides the content if same or different box has been clicked.

Also I wasn’t able to create minimize back effect. Mean if same box is clicked again once it has risen up and revealed content, it will go back to default position. As well, same thing will happened if different box is clicked. It will hide previously opened box and minimize it.

The Fiddle

  • 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-12T09:23:24+00:00Added an answer on June 12, 2026 at 9:23 am

    Try this jsFiddle example

    jQuery

    var $collapseMenu = $('.collapseMenu li');
    $collapseMenu.on('click', function() {
        $collapseMenu.stop(true,true).animate({
            'bottom': '0',
            'height': '15'
        });
        if($(this).height() != 45 ) $(this).stop(true,true).animate({
            'bottom': '30',
            'height': '45'
        });
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first time playing around with SignalR. I am trying to build
I have been a long time C# and .Net developer, and have been playing
Apple have long blocked mobile Safari from playing sounds – the usual JavaScript commands
Playing with jquery for the first time, and I'm trying to get a simple
This question's been bugging me for a long time. I've always wondered how game
So I've been playing around with MySQL lately, and being a long time MSSQL
I have been trying for some time to create a class/series of classes that,
As a long time Eclipse user, I'm playing around a little bit with IntelliJ
First time poster long time reader. I've been playing round with reading in data
I've been playing with jqGrid for quite a long time now but never gone

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.