Mmmm I didnt try it with sizes, but here's how I did it for a normal
fade in/out effect:
*******
//Get a tweening instance
var tween = $('maincontent').get('tween', {property: 'opacity', duration: 400});
//Fade it away, chaining it to the actual request
tween.start(0).chain(function(){
//use Request or whatever to load data
//and update the $('maincontent') DIV
...
//Show again
tween.start(1);
});
On Thu, Jan 15, 2009 at 9:45 PM, Claudio Moretti <[email protected]> wrote:
> Hi all,
> I have a question: if I create a new Request.HTML (but it works even with a
> normal Request), is there anything that I can do to have a Morph used to
> replace the content of my divs, instead of plain replace?
> I've tried with "$('mydiv').morph({ 'height': '1000px' })" in the onComplete
> event and before the request, but this increases the height of my div by
> 1000px + the replaced content height, i.e.:
> if mydiv is (normally) 100px and when the content is replaced it becomes
> 1000px, using the morph function in the way I described it I create a 2000px
> height div :(
> Thanks,
> Claudio
>
--
◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦
Iván Núñez Paz | Comunica Online | Tel. 902 945 321
http://comunicaonline.net/