Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

css left and keyFrame conflicts

$
0
0

Hi.

 

im getting some funny results positioning elements programmatically in conjunction with timeline keyframes.

 

let's say i have element Obj1 positioned at Left 100px and have a keyframe in the timeline for left.

if i then want to move it to left 200px by -> sym.$("obj1").css("left", 200); then my element is placed at left 300px, as if the coordinate system was repositioned to the keyframes position and then 200 is added.

if i try the same without having a keyframe in the timeline, then everything works perfectly.

 

what is happening here ?

Why ?

and most important, is there a trick around this so i can animate elements but still rely on the coordinate system of it's container ?...


Viewing all articles
Browse latest Browse all 9897

Trending Articles