If you want to see the live example: http://codepen.io/leofontes/pen/aBmKzG
Here’s a Codepen with a very basic example, just so you have an idea of the way, but I recommend you understand what’s going on and try to make one yourself:
HTML
<header>
<a href="#" id="linkUm">Menu1</a>
<a href="#" id="linkDois">Menu2</a>
<a href="#" id="linkTres">Menu3</a>
<a href="#" id="linkQuatro">Menu4</a>
</header>
<div id="um"></div>
<div id="dois"></div>
<div id="tres"></div>
<div id="quatro"></div>
CSS
div {
display: none;
height: 200px;
width: 200px;
}
#um {
background-color: red;
}
#dois {
background-color: blue;
}
#tres {
background-color: purple;
}
#quatro {
background-color: green;
}
Javascript
$('#linkUm').click(function() {
$('#um').fadeIn();
});
$('#linkDois').click(function() {
$('#dois').fadeIn();
});
$('#linkTres').click(function() {
$('#tres').fadeIn();
});
$('#linkQuatro').click(function() {
$('#quatro').fadeIn();
});
Thank you very much man That’s what I was looking for
– matheus