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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:42:59+00:00 2026-05-23T20:42:59+00:00

I have this markup x 3: <div class=features> <span class=overlay><img src=img/webdesign.png /></span> <h2>Web Design</h2>

  • 0

I have this markup x 3:

        <div class="features">
            <span class="overlay"><img src="img/webdesign.png" /></span>
            <h2>Web Design</h2>
            <p>Cow pig turkey, chuck sausage pork loin venison biltong shoulder. Shoulder pancetta short loin beef ribs, turkey corned beef shankle swine spare ribs pork chop hamburger beef brisket shank. Pork belly tenderloin brisket, strip steak ribeye bacon tail andouille shoulder t-bone flank venison chicken.</p>
        </div>

Span class overlay is positioned absolutely covering the h2 + P. I have three of these div class features. I’d like to use jQuery to when hovering over a features div, the overlay in that div alone slides up and when the user leaves the hover, slide the overlay div back down.

$(".features").hover(
  function () {
    $('.overlay').slideUp();
  },
  function () {
    $('.overlay').slideDown();
  }
);

I have this so far, but i’m very aware it doesnt work : )

  • 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-23T20:42:59+00:00Added an answer on May 23, 2026 at 8:42 pm

    Add thiscontext to the jquery selector function so that elements of class overlay are selected on within the DIV that is currently hovered.

    Try this:

    $(".features").hover(function() {     
        $('.overlay', this).slideUp();   
        }, function() {     
        $('.overlay', this).slideDown();   
    }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have this markup: <div id=#titles> <p>Intro text <span>text text</span> text text</p> <ul>
Suppose I have this html markup: <div id=wrapper> <pre class=highlight> $(function(){ // hide all
I have a html markup with some <div> elements like this: <div id=1 class=classic>i
I have this markup: <div id=myElement> <ul> <li><a href=#1 class=myElementLink>Link 1</a></li> <li><a href=#2 class=myElementLink>Link
I have this markup: <div id=container> <h1>Heading</h1> <p>Some text</p> <div class=foo>Some stuff</div> <div class=foo>Some
I have HTML markup like this: <div id=blocks> <div class=block></div> <div class=block></div> <div class=block></div>
Say i have this markup: <div class='current'> </div> <div class='current'> </div> <div class='current'> </div>
I have this markup: <span id=tabPhp class=infoData>PHP</span> <span id=tabJquery class=infoData>jQuery</span> <span id=tabWordpress class=infoData>WordPress</span> <span
I have some markup like this: <p><a id=1 href=#>Link 1</a></p> <p id=1show class=starthidden>Hi! I
I have the fallowing markup: <div class=container> <div style=display:none>1</div> <div style=display:none>2</div> <div style=display:none>3</div> </div>

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.