Deprecated! Tweening plugin for the c3runtime + tween timeline support.
I worked it out - I didn't realise you had to re-initialize each time.
I now have a problem where I can't get the opacity to tween correctly. I initialize and then set the target to 80%.
Everytime I call the Tween, it goes straight to 100% and ignores duration/target value etc.
Any ideas>?
Yes, you have to re-initialize it each time. The idea is that you only have to initialize it once and can re-use it everytime. But of course if you need to change the values you have to re-initialize it with the new values.
Regarding opacity: The target is between 0 and 1, not 0 and 100, that is likely the reason why it appears to jump. But since it isn´t really mentioned anywhere, I´ll make sure to add that info in the next release!
If that doesn´t solve it I´d request you share the code so I can take a look.
Yup. I understand that logic now. It does make more sense that way!
And thank you, that solved my problem regarding the opacity!!
Thanks for your help!