Cita:
Iniciado por esystemas
buenas tardes alguien sabe como conseguir este efecto en jquery imagen una imagen pero primero aparece con fade 1px por 1px y va creciendo hasta lacanzar su tamaño real y alli se queda
Fácil, obtienes su tamaño real con
1.-
Código Java:
Ver originalvar object_width = $('#objecto').css('width');
var object_height = $('#objecto').css('height');
2.- Le estableces el tamaño a 1x1px
Código Javascript
:
Ver originalvar width = $('#objecto').css('width','1px');
var height = $('#objecto').css('height','1px');
3.- Haces una animación..
Código Javascript
:
Ver original$('#objecto').animate({width: '' + object_width + '', height: '' + object_height + ''}, 3000);