Thread: Elastic Gallery
View Single Post

  #8 (permalink)  
Old 06-01-08, 19:07
Onsitus's Avatar
Onsitus Onsitus is offline
CSS.FlepStudio.org
 
Join Date: Jul 2007
Location: Nettuno Beach
Posts: 772
Rep Power: 2
Onsitus is on a distinguished road
Re: Elastic Gallery

Buonasera,

prova in pic.as

1. per cambiare la x/y della foto stessa
loader.x=x-loader.width/2;
loader.y=y-loader.height/2;

Poi serve cambiare pure la x/y, del sfondo, direi nella funzione 'completo', aggiungere la posizione x/y basato sulla larghezza/altezza della foto
Tweener.addTween(this,{width:loader.width+30,time: 1,transition:'easeoutelastic'});

Esempio per:
loader.x=100;
diventa
Tweener.addTween(this,{x:loader.width/2+100,width:loader.width+30,time:1,transition:'eas eoutelastic'});

Non so quanto puo essere giusto e l'effetto finale.
__________________

Creazione siti web - Introduzione CSS3
Reply With Quote