Log in

View Full Version : Slider down with hidden content



yoligrana
03-17-2013, 05:30 PM
Hello there, I'm looking for the effect this page has:

menu4today.com/las-palmas-de-gran-canaria

when a user clicks on an entry, the box sliders down showing the hidden content!:o
Can it be done by javascript or css3?
How could I get the effect?

Regards.
Yolanda.

jscheuer1
03-18-2013, 02:34 PM
On that particular page it's done via jQuery:

http://jquery.com/

Specifically, using jQuery's built in slideToggle() method:

http://api.jquery.com/slideToggle/

The specific code in this case is:


$(function() {
$('#login_link, #close_login').click(function() {
return $('.login_box').slideToggle();
});
});