I need to show the title of the numbers textfield as well as the numbers themselves in the same spot (since there’ll be no other space for it in the final design).
Already figured out how to start counting up and down, what’s the problem now:
I trigger a timeline when clicking up or down, which fades the title out and fades the numbers is. The problem is that this happens all the time when the user clicks “up” or “down”.
The way it should be is fading the title out when clicking “up” or “down” for the first time and by clicking again and again just counting the numbers up/down. And within a timer (maybe 2 sec) of no action, it should fade out the number out and the title in again.
Hope this was somehow comprehensible… Probably best to have a quick look at the file: YourNumberUpDown.zip (118.0 KB)
Thanks a lot in advance for this great help within this forum!
Mark, really, thank you so much for your quick and helpful replies!
I tried what you said (at least what I understood) - works fine. Beside one fact:
The change of “Your Number is:” and the actual number is too hard without any fade in/out. The fade out in the end is just fine (I might adjust this for the final project, but theoretically this is working) - but how to fade in the beginning without repeating it every time the user clicks up/down?
Oh, nice, looks already a lot better!
But what about a crossfade like in the ending? Is this possible too?
I thought it might be easy to add a line more in the volumeUpDown-function - but doesn’t seem to work…
But to be honest, I still don’t understand why “Your number is” is invisible when clicking one of the buttons anyway… ?
In the timeline which gets started on clicking on of the buttons “Your number is” is visible. But in the browser it isn’t. Huh?