I'm trying to have a css transition activate on click on each specific menu button. The CSS transition I'm looking to implement is rotateY: 180.
(see here http://desandro.github.io/3dtransforms/examples/card-01.html)
As you can see in the fiddle, I have a square menu which consists of 4 blocks. I used 'About' as an example in the fiddle. Is there a way to set the which then would activate a parenting div of the entire menu container to rotateY 180 degrees and display the about information on the block that flipped around?
What I was thinking was set a parent div that contains the entire menu container and when "About" is clicked on, it activates the div id that would flip around to the new page essentially. For reference use the link above and act as if the blue side is the menu, and the red side is the About information.
My thinking was this: div class flip was that class that actually flipped around the menu container, and then the id About would be the attributes that are displayed when flipped around.
<div class="flip">
<div id="about">
<div class="menupos">
<div id="fade">
<ul class="square-menu">
<li>
<a href="#" class="slink-x">Home</a>
</li>
<li>
<a href="#about" class="slink-y">About</a>
</li>
<li>
<a href="#" class="slink-y">News</a>
</li>
<li>
<a href="#" class="slink-x">Contact</a>
</li>
<br style="clear:both;"/>
</ul>
</div>
</div>
</div>