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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:06:25+00:00 2026-06-11T22:06:25+00:00

I wonder if someone has an approach to solve a problem I have. I

  • 0

I wonder if someone has an approach to solve a problem I have. I experimented a lot with different code that I mixed from scripts and test servers but they don’t help me because I want to move a transformed div with an inside span that holds text only a bit to the left diagonial out of the site on load, then move into the site on hover but still only the one hovered so this one should move out while leaving the hot area with the mouse arrow.
I get no clue on how to combine the classes in a function that I could possibly call on load. I attach my css and the html in case anyone had sort of a problem already.

I though about something like moving them with margin-left to the left and animating them with margin-left to the right!

This is the jquery I came up with but it just does not do what I want. It moves the things straight left/right, not diagonal in the angle that I want them to move to:

<script type="text/javascript">
        $(function() {
            $('#bgrclub .advantages').hover(
                function () {
                    var $this = $(this);
                    $this.stop().animate({'margin-left':'400px'},500);
                    $('#bgrclub .advantages',$this).stop(true,true).fadeOut(1500);

                },
                function () {
                    var $this = $(this);
                    $this.stop().animate({'margin-left':'95px'},1000);
                    $('#bgrclub .advantages',$this).stop(true,true).fadeIn();
                }
            );
        });


        </script>


    <div id="bgrclub">
    <div class="advantages"><span>A proper solution</span></div>
    <div class="advantages"><span>would have to work</span></div>
    <div class="advantages"><span>with differently</span></div>
    <div class="advantages"><span>long text spand</spa></div>
    <div class="advantages"><span style="padding-left:250px;">Random Text Span</span></div>
<div class="advantages"><span style="padding-left:435px;">A really, really, really long text span</span></div>
</div>

Css:

#bgrclub {background-image:url(../images/club_bgr.jpg);background-repeat:no-repeat;width:755px;height:544px;}
#bgrclub_bottompics {background-image:url(../images/club_bgr_bottompics.jpg); position:absolute; bottom:0px; left:0px;background-repeat:no-repeat;width:755px; height:95px; z-index:999;}
#bgrclub .advantages {position:relative;width:755px;float:left; padding-top:40px;-moz-transform:rotate(-20deg); /* Firefox 3.6 Firefox 4 */-webkit-transform:rotate(-20deg); /* Safari */-o-transform:rotate(-20deg); /* Opera */-ms-transform:rotate(-20deg); /* IE9 */transform:rotate(-20deg); /* W3C */}
#bgrclub .advantages span {font-family: 'Open Sans Condensed', sans-serif;font-size:175%; font-weight:lighter; color:#373737;padding:10px; padding-left:125px; margin-left:-150px; border-bottom-right-radius:10px; border-top-right-radius:20px; z-index:1000;
background: -moz-linear-gradient(left,  rgba(255,255,255,0) 0%, rgba(255,255,255,0) 23%, rgba(255,255,255,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(23%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,0) 23%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,0) 23%,rgba(255,255,255,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,0) 23%,rgba(255,255,255,1) 100%); /* IE10+ */
background: linear-gradient(to right,  rgba(255,255,255,0) 0%,rgba(255,255,255,0) 23%,rgba(255,255,255,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */}
  • 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-11T22:06:27+00:00Added an answer on June 11, 2026 at 10:06 pm

    you can define it into

    $(document).ready(function () {
    /**
    * your code
    */
    });
    

    and you can change all css attribute in your hover event:

    $(#your_div).css('float', 'left');
    

    or

    $("#your_div").css('float', 'right');
    $("#your_div").css('position', 'relative');
    

    to get your result
    etc..

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

Sidebar

Related Questions

wonder if someone could help me with a little problem. I have session values
I wonder if someone has a good example of a 'record & play' code
I wonder whether someone has an idea for how to count combinations like the
wonder whether someone can help me with the following one... I have a struct
I have a table that currently has two columns per row and I need
I am sure that someone has a pluggable app (or tutorial) out there that
While programming over an existent class, I've noticed that someone has written something like
Wonder if someone could give me a quick hand. I have 2 select queries
I wonder if someone has tackled the following challenge: Automation Testing of a product
I have a table that has a column with the timestamp in sqlite3. It

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.