Hi Everyone
Looking to create a delay on a hover state…in short it’s a hover state that does not trip any activity when a user is casually going across the website screen.
But the hover state WILL ACTIVATE - only when the cursor is stopped on the state after about 150 milli seconds.
Does anyone have a file I could check out to see the program of the action on this please?
Just want a smooth page that does not trip every hover state and will make a much better experience.
Thanks: Daryl
It can be done, but it sucks. In my quick and dirty implementation, every item that acts this way has to be its own dynamic panel with a default and a hover state, plus some way of tracking whether the mouse left during the wait. In my case, it’s a hidden checkbox.
Any time you mouse out of the dynamic panel, it checks the hidden “mouseleft” checkbox. When you mouse over the panel, it waits 150 ms then moves the panel by 0,0. The OnMove handler checks to see if “mouseleft” is true, and if it isn’t, it changes to the hover state. Otherwise, it resets everything to default.
You could alternately set it up so when the timer is up it just checks whether the cursor is currently inside the boundaries of the dynamic panel, but that would technically allow for some weird flickering if you moved on/off very quickly, particularly if you had multiple panels like this.