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

Swap out the div with a different one when the data-rel values are sequential

I've created a puzzle and I'd like it to fade out while the entire image fades in upon correct completion. Each puzzle piece in the HTML has a data-rel attribute with numbers assigned to them, but I'm unsure how to determine if the puzzle is ...

Generating grid-style buttons dynamically using jQuery Mobile

I am in need of assistance to create a dynamic grid using jQuery Mobile. The grid should consist of buttons with either 'onclick' or 'href' functionality. The number of buttons should be generated dynamically at runtime. Specifically, I ...

How to troubleshoot missing API data in a Bootstrap 5 modal

I am currently working on a project involving a Pokemon API where I have successfully built the front end using .fetch(). My goal is to create an additional modal that displays some stats. However, I am struggling to get the data from the API to show up in ...

The function button.click() is not compatible with Internet Explorer 11 and will not

I have implemented a jqx menu using the code snippet below: <ul style='width: 200px;'> <li onclick="logOffButton.click();">Sign off</li> </ul> My goal is to automatically trigger a click event on the "logOffButton" o ...

A creative way to display a div upon hovering over a link dynamically

My website has dynamically generated a tags, each with its own corresponding div containing unique content and height. I want to make it so that when a user hovers over an a tag, the matching div is displayed. The div should appear at the position of the m ...

How can I implement a real-time progress bar using Rails and Jquery?

This is my first "general" Stack Overflow question - I'm not asking for someone to write code for me, just seeking advice I am searching for a way to incorporate a dynamic progress bar or thermometer (preferably using jQuery) that updates in real-tim ...

flexanimate functioning only on the first attempt

I've been attempting to use jQuery and AngularJS to control the movement of a flex slider using keyboard input. However, I am finding that it only works once with FlexAnimate and then stops working. Can anyone offer insight as to why it is not functio ...

Issues arise while parsing arguments using jQuery's $.getJSON function to retrieve data from the server, as opposed to using PHP

Is there a way to call a PHP program from JavaScript and pass relevant information using $.getJSON on the JS side to be processed by the PHP module through $_GET? Any suggestions would be greatly appreciated. Thanks in advance, Nisse I am currently work ...

How can jQuery verify if an input value is contained within an array?

I've been attempting to verify if the value of an input field is part of an array, but for some reason it's not working. Here is my approach: var postcode1 = []; for (var i = 21000; i < 21999; i++) { postcode1.push({ val: i, text ...

modify the name attribute of a select dropdown using jQuery dynamically

In my current project, I am working on dynamically changing the "name" attribute for each select box based on user interactions. The scenario is as follows: When a user clicks on an option in the first select box, a new select box appears with the remainin ...

Colorbox now has the ability to load all colorboxes that were previously

After successfully creating a colorbox, I encountered a problem: when I close it and open another colorbox on the page, both colorboxes load simultaneously (with the first one appearing directly behind the second). This pattern continues as I open and clos ...

Unable to retrieve share count data from the AddThis API using the <script/> tag

After spending several hours attempting to solve this issue on my own, I have decided to reach out to the experts in the Stackoverflow community. The script code I am using is functioning correctly for the Facebook API but seems to be encountering issues ...

Facing an infinite loop issue with my ng-view and the index.html page in AngularJS

Hello everyone, I have a question regarding AngularJS ngview. I just started learning about Angular a week ago. In my code, the webpage is showing an infinite loop of the index itself instead of displaying the correct page. I've searched on Stack Ove ...

Can you identify the mistake in this jQuery script?

My jQuery code seems to be causing issues as it's not working at all. According to Firebug, there is a missing parenthesis - but where could it be? $.get(url: 'example.html', function(data) { var $page = $(data); $page.filt ...

What causes the odd gaps at the bottom of boxes in a Pure CSS Masonry layout?

Issue with implementing Pure CSS Masonry layout. Using position: relative for the boxes and position: absolute for the content inside each box is causing gaps below each box. Struggling to find a solution, view the code on this codepen: http://codepen.io/k ...

IE6 is not displaying the tag styles correctly

My website has a section that shows two links next to each other. While it's displaying correctly on most browsers, it seems to have issues specifically in IE6. You can view the issue on this fiddle. Can anyone shed some light on why this is happenin ...

aligning adaptable grid on the screen

Is anybody able to assist me in vertically centering the responsive matrix below so that it is equidistant from the left and right edges of the screen (parent element has a width of 100%)? Any help would be greatly appreciated. Here is my code: <!DOC ...

What is the best way to vertically align a label at a 270-degree angle?

I am trying to position text vertically at 270 degrees and in the middle of an image. This is my goal. Despite attempting to use the CSS 'transform' property, I have been unsuccessful. You can view the code I tried here. Below is the HTML and CS ...

"Resolving the issue with unnecessary line breaks in Optimizepress when input is contained within a paragraph

I am experiencing an issue with the code on my server: <p>This is a test to determine why the <input type="text" style="text-align: center;" value="input"/> element appears on a new line when displayed on a wordpress page.</p> When view ...

Retain selected elements and eliminate the rest while maintaining structure with Cheerio/jQuery

I am looking to isolate specific elements while maintaining their structure. For example: <html> <head> <meta xx> </head> <body> <div class="some1"> <div class="some1-1">< ...