How do I scale down an image using ScaleTransition? I have this right now and it only scales up. I not if I'm misunderstanding the method, but I have it scaling From 1 to 0.8. For some reason this still scales up.
ScaleTransition st = new ScaleTransition(Duration.millis(900), iv2);
st.setFromX(1);
st.setFromY(1);
st.setByX(0.8);
st.setByY(0.8);
st.play();
If I reverse the values like so, it shows up small but snaps bigger and scales up again.
ScaleTransition st = new ScaleTransition(Duration.millis(900), iv2);
st.setFromX(0.8);
st.setFromY(0.8);
st.setByX(1);
st.setByY(1);
st.play();
Is there a way I can just get the ScaleTransition to scale down?