Sliding Up Transition Effect for Footer with JQuery or CSS3

I am attempting to replicate a sleek slide up footer that caught my eye on The Internship Movie Site. I have created the wireframe layout, but I am struggling to figure out the correct CSS transition effect. Although I have experimented with the "top" and "height" transition properties, I can't seem to achieve the desired result. It seems like there may be a small detail that I am overlooking, or maybe I should consider using JQuery instead of CSS. I would appreciate any insights or suggestions you may have. Here is the fiddle

HTML

<!-- Begin Site Wrapper -->
<div id="wrapper">

<!-- Begin Header -->
<div id="header">Menu List Here
    </div><!-- End Header -->

<!-- Begin Site Content -->
<div id="sitecontent">Some Site Content Goes Here
    </div><!-- End Site Content -->    

<!-- Begin Footer --> 
    <div id="footerwrapper">
        <div id="footerleft">Left</div>
        <div id="footercenter">Center</div>
        <div id="footerright">Right</div>
        <div id="hugetextreveal">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</div...
    </div> <!-- End Footerwrapper -->
</div> <!-- End Site Wrapper -->

CSS

#wrapper {width: 600px; margin: 0 auto;}
#header {background: #000; color: #fff; height: 30px; text-align: center}
#sitecontent {min-height: 400px; background: #ff0000;}

#footerwrapper {width: 600px; height: 40px; background: #000; color: #fff; text-align: center; position: relative; overflow: hidden}
#footerleft {width: 200px; float: left; position: relative }
#footercenter {width: 200px;  float: left; ...
#footerright {width: 200px;  float: left; position: relative }
#hugetextreveal {width: 100%; height: auto;  float: left; padding-top: 20px; position: relative;  transition: max-height 0.7s ease-in;  }

#footerwrapper:hover #hugetextreveal {
max-height: 200px;}

Answer №1

I made some updates to these two sections, take a look, it's quite straightforward

#footerwrapper {width: 600px; height: 40px; bottom:0px;  background: #000; color: #fff; text-align: center; position: relative; overflow: hidden; transition: all 0.5s ease 0.2s; }
#footerwrapper:hover { height:140px; bottom:100px; }

http://jsfiddle.net/e8sv2/7/

Answer №2

The particular webpage you wish to replicate features CSS transitions exclusively:

#footer:hover {
    height: 295px;
}
#footer{
    -webkit-transition: height 0.5s ease;
    -moz-transition: height 0.5s ease;
    -o-transition: height 0.5s ease;
    -ms-transition: height 0.5s ease;
    transition: height 0.5s ease;
}

Answer №3

If you're looking for a solution, jQuery may be able to help:

$("#footerwrapper").hover(function () {
    $("#hugetextreveal").fadeIn(700);
},
function () {
    $("#hugetextreveal").fadeOut(700);
});

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Using Javascript, when the command key is pressed, open the link in a new window

Currently, I am working on a Javascript function that opens links in a new tab only when the "command" key is pressed on an Apple computer. Here is what I have so far: $(document).on('click','a[data-id]',function(e){ if(e.ctrlKey|| ...

Align the subtext to the right and center it vertically within a Bootstrap dropdown menu item

Is there a way to vertically align small captions on the right side of a dropdown menu, next to each item's text? The issue is that in the example below, the numbers are not properly aligned. https://i.stack.imgur.com/NZigW.png The numbers 123 and 1 ...

Give my website a cheeky click as soon as it pops up on your screen

$(function callLazyLoad(){ $(window).bind("resize click scroll", function(event) { $('img.lazy').lazyload(); }); }); Hello world! I am faced with a challenge where my images only load when the website is being resized, clicked, or scrol ...

most effective method for recycling dynamic content within Jquery mobile

My jQuery mobile app has a requirement to reuse the same content while keeping track of user selections each time it is displayed. I have successfully created the necessary html content and can append it to the page seamlessly. The process goes something ...

Accessing a Variable in one JavaScript File from Another JavaScript File

In the process of creating a basic game using only JavaScript and jQuery, I have split it into two separate pages. The first page contains all the rules and necessary information, while the second page is where the actual game takes place. My goal is to in ...

Does Google's caching process differ when using <span> tags instead of <h> tags for headings?

Does the choice between using <span class="heading"> and <h> tags impact search engine optimization for Google? As I'm constructing a website, I decided to style the headings and subheadings with <span>. However, I began to wonder i ...

When using select2 with AJAX, ensure that the previous response is cleared when the field

Learn how to implement select2 $("#select").select2({ ajax: { url: "/getcity", dataType: 'json', type: 'post', delay: 250, allowClear: false, minimumInputLength: 3, cache: true } }); Every time I focus, ...

Select2 does not display the result retrieved from an AJAX request

Why does my select2 object always show 'No Results Found' when filtering, even though there is a response from it when I check on Inspect Network in Google Chrome? I am using select2 version 4.0.6-rc.1. Here is the code to create the select2 obj ...

Can you guide me on implementing a transition animation through class toggling?

I am facing an issue where certain elements need to be highlighted or unhighlighted conditionally. To achieve this, I have assigned a class called highlight to the elements that require highlighting with a transition animation. The challenge arises when t ...

Unable to align my navigation bar in the center

My navigation bar code is not centering on the website. Even after removing float: left, it doesn't move to the desired position. Can anyone help me with this issue? Thank you. css ul#list-nav { list-style: none; margin: 20px auto; paddi ...

The JQuery countdown timer seems to be stuck and isn't decreasing as expected

I've been working on a jQuery countdown timer that should start at 30:00 minutes and count down to 00:00. However, I'm facing an issue where it gets stuck at 29:59. Here's the code snippet I'm using: var now = new Date(); var newDateOb ...

It is impossible to change the text color to white

I am working on some JSX code which looks like the following: <div style={Object.assign({}, styles.occupyAllScreen, styles.backgroundContainer)}> <div styles={styles.overimposingText}> <h2 styles={{color: 'white !important& ...

Exploring the context of file upload events and analyzing javascript functionality

Can you help me conditionally trigger the file upload dialog using JavaScript based on an Ajax response? <input type="file" id="Upload"> I have hidden the input element as I don't want to display the default file upload button. Instead, ther ...

Issues with the Bootstrap date time picker functionality

Even though I have added all the necessary libraries for the date time picker, it still isn't working properly. You can check out this fiddle to see the code. <div class='input-group date' id='from_time'> <input type ...

Generate a fresh array from the existing array and extract various properties to form a child object or sub-array

I am dealing with an array of Responses that contain multiple IDs along with different question answers. Responses = [0:{Id : 1,Name : John, QuestionId :1,Answer :8}, 1:{Id : 1,Name : John, QuestionId :2,Answer :9}, 2:{Id : 1,Name : John, QuestionId :3,An ...

Having trouble with individuals gaining access to my gh-pages on Github

After creating a gh-pages repository on Github to showcase my portfolio, I encountered an issue where visitors were being prompted to log into Github in order to view the page. Gh-pages are intended to be public, so I am unsure why this is occurring. My ...

Acquiring variables from a JQuery Ajax request while invoking a JavaScript file

I'm currently experimenting with using JQuery Ajax to retrieve a javascript file. I need to pass some parameters to it, but I'm not entirely sure how to do so in Javascript (PHP seems easier for this). Here is my current setup: function getDocum ...

Trouble aligning 'nav' to the center of the page in the metro-bootstrap.css file

Struggling with alignment issues in my navigation list while using 'metro-bootstrap.css' from . Despite numerous attempts, I can't seem to get it right. Visit advinadv.co.uk for a closer look. Any assistance would be greatly appreciated! Be ...

Dynamic collapsible containers

I discovered a useful feature on w3schools for collapsing elements: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_collapsible_symbol However, I would like to reverse it so that all elements are initially shown when the page loads, and then ...

How can you stop queuing animations and timeouts in jQuery?

I'm facing a seemingly simple problem that I need help with. On my website, there's a hidden div.notification bar at the top. This bar can be displayed by adding either the success or warning class to it. There are two scenarios: either a messa ...