Perhaps I need to reload the page in between the fadeIn and fadeOut?
也许我需要重新加载页面之间渐明渐隐?
Each time a timetick event occurs in FadeIn state, the handleEvent method will call a function that increases the opacity of the tooltip slightly.
每当在FadeIn状态下发生timetick事件时,handleEvent方法将调用一个函数,它略微增加工具提示的不透明度。
The function will return the current state, leaving the finite state machine in FadeIn state, until the tooltip's opacity reaches the maximum opacity parameter.
这个函数将返回当前状态,让有限状态机保持在FadeIn状态,直到工具提示的不透明度到达最大不透明度参数。
Or, when a timeout event occurs, you will cancel any timer that might be running, create the tooltip with an initial opacity of zero, start a ticker, and transition to FadeIn state.
当发生timeout事件时,将取消任何正在运行的计时器,创建一个初始不透明度为0的工具提示,启动一个断续器,并转换到FadeIn状态。
Or, when a timeout event occurs, you will cancel any timer that might be running, create the tooltip with an initial opacity of zero, start a ticker, and transition to FadeIn state.
当发生timeout事件时,将取消任何正在运行的计时器,创建一个初始不透明度为0的工具提示,启动一个断续器,并转换到FadeIn状态。
应用推荐