Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Line data #113

Closed
htakaoka opened this issue Feb 25, 2017 · 5 comments
Closed

Time Line data #113

htakaoka opened this issue Feb 25, 2017 · 5 comments

Comments

@htakaoka
Copy link

Time line command's data mast have ['now','next'], now point dos not saved.

@juliangarnier
Copy link
Owner

Not sure to understand what you mean by "time line commands data"?

@htakaoka
Copy link
Author

sample is
var basicTimeline = anime.timeline();

basicTimeline
.add({
targets: '#basicTimeline .square.el',
translateX: [0,250],
translateY: [0,100],
rotate: [0,720],
duration: 3000,
easing: 'easeOutExpo'
})
.add({
targets: '#basicTimeline .square.el',
background: ['red','red']
})
.add({
targets: '#basicTimeline .square.el',
translateX: [250,0],
translateY: [100,0],
rotate: [720,0],
duration: 2000,
easing: 'easeOutExpo'
})
.add({
targets: '#basicTimeline .square.el',
translateX: [0,0],
translateY: [0,0],
rotate: [0,0],
background: ['#31FFA6','#31FFA6'],
easing: 'easeOutExpo'
});

https://codepen.io/htakaoka/pen/VpYbem

@juliangarnier
Copy link
Owner

I see, you're talking about avoiding having to use initial values on a same target in a timeline?

Take a look a this branch https://github.com/juliangarnier/anime/tree/v2.0.2 and let me know if it solves the problem for you.

@htakaoka
Copy link
Author

htakaoka commented Mar 1, 2017

Thank you for your support.

The ad block did not cooperate.
As for each data, it is separated.
When the number of the data of the property is not same
I understood that a program did not work.
thank you.

version up 2017.3.2
https://codepen.io/htakaoka/pen/VpYbem

@htakaoka
Copy link
Author

htakaoka commented Mar 1, 2017

It worked on a PC normally wonderfully in v2.0.2.
Thank you.
The problem was settled.
Because CodePen is still v2.0.1, it does not work.

code exp.
https://codepen.io/htakaoka/pen/wJMoLp

@htakaoka htakaoka closed this as completed Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants