Jump to content
miranda121

Jquery to css3 seletores possivel?

Recommended Posts

miranda121

Muita boa tarde, tenho andado a me informar sobre css3 e tenho encontrado coisas bastantes interessantes.

Estou a realizar um site onde contenho um Jquery para fazer Hide e Show de um menu que aparece ao carregar, eu gostava de saber se seria possivel passar isso para CSS3 com seletores, depois aplicando transition's para dar aqueles efeitos de aparecer e desaparecer com um alanao por isso ( depende da criatividade)

html code

	
<div class="foto"><img class="seta_perfil" width="15px" height="15px" border="0" src="images/seta.png">
<img class="foto_perfil" width="35px" height="35px" border="0" src="images/drhouse.png">
</div>
<div id="opcoes"></div>

jquery code:

$(".foto_perfil").click(function(){
	if ($("#opcoes").is(":visible")) {
		$("#opcoes").fadeOut("slow");
	} else {
		$("#opcoes").fadeIn("slow");
		$('#opcoes').load('menu_perfil.php');
	}
});

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.