So basically what I am trying to achieve is,
- when people click on first image, the rest will slide and fade, then the content loads up,
- when people close, it will be back into 4 images,
- when people click on 2nd image; images 1, 3 and 4 will slide and fade out, content shows up and so on.
I tried to play around with Jquery, and still ended up with zero result.
Here is the link:
http://homethai.com.au/testing/test.swf
This (with a bit of trial and error) is actually possible mostly through CSS, with plain JavaScript used only to toggle the class names (when a block is clicked and when a close link is clicked).
If
.block.activein the CSS is replaced with.block:hoverso that each block will expand on hover, and the close links (and styles) are removed, then no JS is required at all.HTML:
CSS:
JavaScript: