Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to do something everytime .animate repetition ends

$
0
0

var track = Ti.UI.createView({ width: 100, height: 30, backgroundColor: '#e8e8e8', top: '30%' }); var progress = Ti.UI.createView({ left: 0, width: 1, height: 30, backgroundColor: '#00c36a' }); track.add(progress); Ti.UI.currentWindow.add(track); Ti.UI.currentWindow.addEventListener('open', function () { progress.animate({ width: 100, duration: 10000, repeat: 6 });

I have made a custom progress bar and I want to add some functionality every time a repetition is completed in progress.animate()


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>