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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:05:54+00:00 2026-05-27T16:05:54+00:00

I want three div boxes on my site to slightly toggle and kind of

  • 0

I want three div boxes on my site to slightly toggle and kind of ‘hover’ around slowly until the mouse is over them – and then my custom hover effects take place that I’m already using. (shaking/rattle and opacity). But I’m stumped on how to get the slightly animation going.

Here’s where I’m at with my fiddle – what did I miss?

http://jsfiddle.net/7t5q9/

  • 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-27T16:05:55+00:00Added an answer on May 27, 2026 at 4:05 pm

    You did not specify a duration in your example. As far as making the divs slowly float around, you could apply animations repeated animations with random top and left values as follows:

    $(function() {
        var timeout;
        function moveAimlessly() {
            $(".aimless").each(function() {
                $(this).stop().animate({
                    top: Math.floor(Math.random()*2) == 1 ? "+=" + Math.floor(Math.random()*41).toString() : "-=" + Math.floor(Math.random()*41).toString(),
                    left: Math.floor(Math.random()*2) == 1 ? "+=" + Math.floor(Math.random()*41).toString() : "-=" + Math.floor(Math.random()*41).toString()
                }, 4000);
            });
            timeout = setTimeout(moveAimlessly, 4000);
        }
        moveAimlessly();
    
        $(".aimless").on("hover", function() {
            clearTimeout(timeout);
            $(".aimless").stop();
        });
    });
    

    Link to example: http://jsfiddle.net/7zZEG/1/

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

Sidebar

Related Questions

I want to spawn three random colored div boxes behind each list element. I
I want the style of three div align as same as the following picture.
I have a form with three text boxes. I want to have a key
I need to horizontally (I don't care vertically) center three boxes (div or span,
So I have a div tag to sort of draw boxes around various sections,
I need some help with my design. I want to display three equal-height boxes
I have three select boxes. <div style='float: left; padding-right: 10px;'> <select size=10 name=company_id> //
I have a div named box which contains three classes. I want to create
I want to center a background image. There is no div used, this is
I want to display three different values allocated to two different headers, in other

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.