Animating dynamic content
hello all-
i'm creating "ticker" type slide show images(thumbnails) move slowely left.
the stage 125pxh x 1280px w.
the images clickable thumbnails.
the image dynamic, pulling image url , title json file.
i have images pulling animation don't know how animate them slide left across stage.
the stage empty exception of symbol (i've removed symbol stage images pulled json file remain static , not move). i've tried animating symbol on "symbol's stage" , animating symbol on main stage. animating symbol on main stage, "container" dynamic images sliding across stage images remain static.
does know how can animate them across stage?
oh, don't think makes difference here's code have in "creationcomplete" action:
$.getjson('categories.json', function(data) {
for(var i=0; i<data.length; i++)
{
var s = sym.createchildsymbol("slide", "stage");
s.$("category_img").css({"background-image":"url('"+data[i].image+"')"});
s.$("title").html(data[i].title);
s.getsymbolelement().css({"position":"absolute",
"left": i*225+50+"px",
"top":"2px"});
}
});
thank in :-)
long time no see! how you?
i thinking use jquery animate() move slides.
something this:
in compositionready:
sym.$('thumbnails').css({'position':'relative'});
then code in loop:
sym.$("thumbnails").fadein('slow',function(){
$(this).animate({'left': '-=30px'},'slow');
});
but have put in symbol starts on @ beginning when reaches end.
ok got , here sample:
https://app.box.com/s/cdn6gz2qoasqvs63a1eb
More discussions in Edge Animate CC
adobe
Comments
Post a Comment