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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:44:38+00:00 2026-05-15T08:44:38+00:00

Is it possible to have divs located around a central point and then on

  • 0

Is it possible to have divs located around a central point and then on hover for them to whisk off screen and return when the mouse is gone?

This what the layout:

layout
http://pena-alcantara.com/aramael/wp-content/uploads/2010/04/Paper-Browser.8.5×11.Horizontal3.jpg

is looking like, the idea is for the green “leaves” to whisk off to show the branches and the menus. Would this be possible with JavaScript and PHP?

  • 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-05-15T08:44:39+00:00Added an answer on May 15, 2026 at 8:44 am

    You are going to need to combine a few jQuery features.

    The animation feature at: http://api.jquery.com/animate/
    The mouse over feature: http://api.jquery.com/mouseover/
    The mouse out feature: http://api.jquery.com/mouseout/

    Have “dummy divs” where the mouse over is detected that move their ID’s real div out of view using animate it, and bring it back with mouseout

    I found this interesting so coded it for myself… I did it as below:

    <style type="text/css">
    body {
        overflow:hidden;
    }
    .leaf {
        position:relative;
        background-color:#0F0;
        height: 100px;
        width: 100px;
    }
    .branch {
        display:inline-block;
        background-color:#F00;
        height: 100px;
        width: 100px;
    }
    </style>
    <script type="text/javascript">
    $(function(){
        var w = $(document).width();
        var h = $(document).height();
        var r = 250;
        $(".branch").hover(function() {
                        var rand = Math.random();
                        var x,y;
                        if(rand<0.25) {
                            x = w;
                            y = h*Math.random();
                        } else if(rand<0.5) {
                            x = -w;
                            y = h*Math.random();
                        } else if(rand<0.75) {
                            x = w*Math.random();
                            y = h;
                        } else {
                            x = w*Math.random();
                            y = -h;
                        }
                        $(this).children().animate({left: x, top: y});        
                    }, function () {
                        $(this).children().animate({left: '0', top: '0'});  
                    })
    });
    </script>
    <div class="wrap">
        <div class="branch"><div class="leaf"></div></div><!-- etc -->
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: click link below a higher z-index div I have two divs, one
I have 3 divs. When I click one of them, the div will disappear
I have several divs within a larger divs. Is it possible to position all
I have 3 divs with 2 possible image tags for each (active or inactive).
Possible Duplicate: CSS - Equal Height Columns? I have 3 divs. Like this: <div
I have 3 different divs with images in them. Each div with a different
Is it possible have two projects with the same name in flex builder? Here
is possible to have a separator between elements of a GridView? Thanks
Is it possible to have an association mapping a table to itself? e.g. Table:
Is it possible to have a relationship from a user table to a system

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.