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 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

I have a div:hover script set up http://jsfiddle.net/4wb5P/6/ (with the help of from StackOverflow
In C++, I can set the current locale like this: std::locale::global(std::locale(name)) But how can
This is the current result that can be changed from day to day (int)
I have a CSS/jQuery Checkbox style script: http://jsfiddle.net/BwaCD/ The problem is, in current browsers
I am having a bit of difficulty with this current code I have set
this is for a small project of mine, I'm trying to set the current
I'm running code that sometimes yields this: UInt32 current; int left, right; ... //sometimes
I have a pagination script, which can be seen here: http://www.automotori6282.tk/phpsandbox/ This is the
Ok this is my problem that no one can seem to answer. I have
Example here: http://jsfiddle.net/KyW6c/2/ I have an ordered list. Each list item is a project

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.