animation - CSS3 onclick activate another DIV's hide/show -


i'm starting in css3, i'm trying make menu this: http://codecanyon.net/item/metro-navigation-menu/full_screen_preview/4573382

the idea when click button, hides parent div , open div daughter other buttons.

i saw post css3 onclick activate div's animation points example http://jsfiddle.net/kevinphpkevin/k8hax/, code:

css:

#box1 {     display:none; } #box1:target {     display:block; } 

html:

<a href="#box1">click me</a> <div id="box1">test test</div> 

that clicking on link, opens div. want click link, hide div, open other , reverse.

i use css3

tks help

if want use css3 can use checkbox hack (http://css-tricks.com/the-checkbox-hack/).

it far ideal css usage setting boxes radio boxes quite each 1 deactivates others. (ie set "width:0px" default, change "width:200px" on check combined "transition: width 0.5s;-webkit-transition: width 0.5s;" bit of animation).

in honesty better using jquery/javascript fallbacks checkbox hack not ideal , not stuff css built control.

hope helps, dan


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -