Hi,
This is a wrapper for the transitions of JavaFX. It's very easy to set up, I have tried to make it very simple:
I have currently ported the Scale, Translate, Rotate and Fade transitions. For each of those transitions, there is an event "Finished" to notify when the animation is over.
Enjoy.
This is a wrapper for the transitions of JavaFX. It's very easy to set up, I have tried to make it very simple:
B4X:
Dim st As ScaleTransition
st.Initialize(Me, 500, ap, "st")
st.AutoReverse = True
st.FromX = 0
st.FromY = 0
st.ToX = 1
st.ToY = 1
st.CycleCount = 1
st.Delay = rnd(50, 200)
st.Play
I have currently ported the Scale, Translate, Rotate and Fade transitions. For each of those transitions, there is an event "Finished" to notify when the animation is over.
Enjoy.
Update: 2016-10-31:
- Grouped all 4 transitions to 1 single library: jTransitions (so you can delete the previous FadeTransition, RotateTransition, ScaleTransition, TranslateTransition libraries)
- passing -1 to cycleCount will play animation indefinitely.
- Added Stop, Pause methods
Attachments
Last edited: