I've got a menu bar that links to anchors on my page. At the moment there's content within the page which is animated to fade in using CSS3 on the initial page load but I'd like instead for them to fade in after the certain anchor link in the menu bar is clicked. How do I do that?
Eg. About is pressed then .aboutinfo CSS animation is activated.
To do That You can use the '+' symbol
For eg.
if i want the color of a circle to change when i hover over a box then
Check out:
http://jsfiddle.net/utkarshd/Hh38R/
HTML
<div class="box"></div>
<div class="circle"></div>
CSS
Here is a demo to have an onclick even with CSS only (no javascript) http://jsfiddle.net/kevinPHPkevin/K8Hax/
CSS
HTML