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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:28:47+00:00 2026-05-22T18:28:47+00:00

With this current set up: http://jsfiddle.net/FMqbP/2/ How can I change the effect so that

  • 0

With this current set up: http://jsfiddle.net/FMqbP/2/

How can I change the effect so that when I hover over the image, the description doesn’t fade in but rather comes up from the bottom pushing everything upwards. Similar to the boxes seen here?

Code:

<article class="project ">
    <section class="thumbnail">
        <img src="https://i.stack.imgur.com/SQbn0.gif" alt="image" />
        <section class="description">
            <hgroup>
                <h2>Title</h2>
                <h3>Cat1, Cat2, Cat3</h3>
            </hgroup>
            <p>Description</p>
                <small class="screenshot"><a class="single-image" href="https://i.stack.imgur.com/BQOva.gif">View Screenshot</a></small>
            <span>Launch <a href="http://test.com" target="_blank">Website</a> | View <a href="test2">Case Study</a></span>
        </section>
    </section>
</article>

CSS:

.project { border:1px solid #efefef;color:#fff;float:left;height:292px;margin:0 20px 20px 0;overflow:hidden;padding:3px;width:292px }
article.right { margin-right:0 }
.project .thumbnail { background:#222;height:292px;position:relative;width:292px }
.project .description { display:none;left:10px;position:absolute;top:10px;width:272px }
.project .description a { color:#fff }
body.home .project .description p { border-bottom:1px solid #777;margin-bottom:10px;padding-bottom:10px }
.project .description span { border-top:1px solid #777;float:left;margin-top:5px;padding-top:5px;width:272px }
.star { line-height:10px }
.screenshot { line-height:10px }

jQuery:

$('.thumbnail').hover(function() {
    $('img', this).stop(true,true).fadeTo(200, 0.1);
    $('.description', this).stop(true,true).fadeIn(200);
}, function() {
    $('img', this).stop(true,true).fadeTo(200, 1);
    $('.description', this).stop(true,true).fadeOut(200);
});
  • 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-22T18:28:48+00:00Added an answer on May 22, 2026 at 6:28 pm

    you don’t need any positioning, just use a negative margin on the image and the overflow: hidden that’s on the article.project will take care of it

    in this example I use the jQuery to find the height of the description element then move the image upwards by that same height on mouseover,the decription isn’t hidden it’s just clipped by the overflow, so whe you move the image upwards by the same height as it the description moves up too and becomes visible

    Example fiddle: HERE

    using your HTML above:

    CSS:

    .project {
        border:1px solid #efefef;
        color:#fff;
        float:left;
        height:292px;
        margin:0 20px 20px 0;
        overflow:hidden;
        padding:3px;
        width:292px;
    }
    
    .project .thumbnail {
        background:#222;
        width:292px;
    }
    
    .project .description {
        background: #444;
        padding: 5px 10px;
        display: block;
    }
    
    .project .description a { color:#fff }
    

    jQuery:

    $('.thumbnail').hover(function() {
        var desH = $('.description').outerHeight();
        $('img', this).css({"margin-top" : -desH});
    }, function() {
        $('img', this).css({"margin-top" : 0});
    });
    

    or

    Added

    jQuery to animate the "slide"

    $('.thumbnail').hover(function() {
        var desH = $('.description').outerHeight();
        $('img', this).stop().animate({"margin-top": "-" + desH + "px"}, 1000 );
    }, function() {
        $('img', this).stop().animate({"margin-top": "0px"}, 1000 );
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My current position is this: if I thoroughly test my ASP.NET applications using web
The current top-voted to this question states: Another one that's not so much a
If I understand this correctly: Current CPU developing companies like AMD and Intel have
Is there a difference between Cursor.Current and this.Cursor (where this is a WinForm) in
I need a serviceable shell for MSYS. This is my current dilemma: The default
In the constructor of my class, I map the current object ( this ),
EDIT : This question duplicates How to access the current Subversion build number? (Thanks
This is actually a two part question. First,does the HttpContext.Current correspond to the current
This isn't as malicious as it sounds, I want to get the current size
I need to upgrade my current version of DNN this week. I am currently

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.