Skip to content

Spark-AR-Developers/tween-function

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

SparkTween

A tiny teeny tween function for SparkAR

https://pl.ai

Doesn't add any new functionality to SparkAR, instead it just wraps the Animation, TimeDriver and Samplers into (I think) an easier to read format, so if you are used to TweenMax / TweenLite or DoTween in Unity etc then the syntax below should be pretty readable to you.

Tween(startValue, endValue, duration, loopCount, mirror, easeType, completeCallback)

e.g.

sceneObject.transform.x = Tween(-100, 100, 5, 10000, true, Ease.BOUNCE_OUT, OnAnimationCompleteCallback);

ToDo
create some real docs
look at adding support for sequences
moar testing
add infinite loops for loop count

About

A tiny teeny tween function for SparkAR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%