You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to animate javascript object with nested object.
currently we can animate root properties but when we get deeper in to the object we cant animate the values.
i think this will be pretty handy if we were able to do such.
i want to animate javascript object with nested object.
currently we can animate root properties but when we get deeper in to the object we cant animate the values.
i think this will be pretty handy if we were able to do such.
sample code :
var Rect= {
width: 100,
height: 100,
position: {
x: 10,
y: 10
}
}
anime({
targets: Rect,
width: 200,
height: 200,
"position.x": 100,
"position.y": 100,
round: 1,
easing: 'linear'
});
The text was updated successfully, but these errors were encountered: