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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:13:24+00:00 2026-06-17T17:13:24+00:00

I have 3 icons on a page side by side. What I am wanting

  • 0

I have 3 icons on a page side by side. What I am wanting is when a user hovers over the icon a small text span slides out to the left.

So that (no hover):
[IMG]

Hover (text slides out): SOME TEXT [IMG]

I am using this code for each icon:

<div class="cgs"><span class="cgstext">1. Connect</span><a href="#"><img src="images/cgs/connect70h.png" width="69" height="70" alt="Connect"></a></div>

If the icon was on the left and text on the right I would simply use jQuery animate to extended the outer div…but I’m not exactly sure what to do to make the span on the left slide out to the left. I would prefer it to slide out gracefully and if it is in between 2 icons the space to expand gracefully (and contract gracefully on hover out) if possible.

Any help is appreciated!

  • 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-17T17:13:25+00:00Added an answer on June 17, 2026 at 5:13 pm

    This should be enough to get you there. I had to change your html, css, and add some js. Don’t use a span because you can’t set a width on it. Thus making animate useless. Instead I made it a div set to inline-block. You can then animate it properly. The rest is just javascript which it sounds like you know how to already anyhow.

    Hover over an image.

    http://jsfiddle.net/Mx2JS/3

    <div class="cgs">
        <div class="cgstext">1. Connect</div>
        <a href="#"><img src="http://placehold.it/69x70" width="69" height="70" alt="Connect"></a>
        <a href="#"><img src="http://placehold.it/69x70" width="69" height="70" alt="Connect"></a>
        <a href="#"><img src="http://placehold.it/69x70" width="69" height="70" alt="Connect"></a>
    </div>
    
    
    $('a').hover( function() {
        $('div.cgstext').animate( { width:100 }, 500);
    }, function() {
        $('div.cgstext').animate( { width:0 }, 500);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Menu button on the left hand side of the page and
I have an icon that is inserted into a page using the background-image property.
I have some icons inside divs and needed to lay them out with a
I have menuitems with icons and when it is disabled the icon remains the
I am developing iphone application, I have a home page, with buttons (icons), I
I have multiple input fields on one page. Each input field have a text
Basically my requirment is that I have to upload 4 to 12 small icons(6kb)
I have a web page I'm designing, and I am trying to have icons
I have a small programming problem (php & javascript). On index.php page I'm printing
I want to have multiple video icons at the top my website's front page.

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.