Skip to content

Animate text like marquee #12950

Answered by Astrovic
Astrovic asked this question in Q&A
Jul 12, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

This solves the problem: curve: Titanium.UI.ANIMATION_CURVE_LINEAR, and so

var animation = Titanium.UI.createAnimation({
    left: -width,
    duration: width * 30, // Otherwise short texts run too fast and long texts slowly
    repeat: 100,
    curve: Titanium.UI.ANIMATION_CURVE_LINEAR
  });

Thanks to @m1ga for the suggestion!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Astrovic
Comment options

You must be logged in to vote
1 reply
@macCesar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants