Here's the scenario: I have 3 block elements arranged in a specific order:
- Image
- Hidden Text Block (.hidden)
- Footer Block (.blockimage)
When the page loads, the image is displayed over the hidden text block (which contains further information), followed by a small header block. When the .blockimage is clicked, I want the .hidden block to slide above the image.
Currently, the .hidden element has been set to position:absolute and has inline style display:none. If I inspect the .hidden element and uncheck display:none, it appears as expected. However, I am having trouble animating it on a click event.
This is what I have attempted so far:
$('.blockimage').click(function() {
$('.blockimage .hidden').slideUp('fast', function() {
// code to remove display:none from inline CSS of .hidden and slide content up (the class already exists)
});
});
Without considering rotation, the slide-up effect should be similar to this example: http://css-tricks.com/examples/SlideupBoxes/
Any assistance would be greatly appreciated :)