-
Notifications
You must be signed in to change notification settings - Fork 30
Apply hover class on a certain time interval #35
Comments
Hi there, the website address is not working. |
@etienne-martin Sorry, the address is https://sporedev.ro/pleiade :) I missed the ".ro". |
I did some research and camed up with this script:
Seems to work alright but I get a weird outline that keeps staying there when it shouldn't be highlighted. You can see the effect taking place on the second statue on the right side. Wait 3 seconds and it will start blinking. Any idea why this happens? |
Good job! The stroke stays because you're not removing it on Try removing it with: |
Thank you! That seemed to solve it! Please leave the issue open for a few more days, I'll improve the script and I'll drop it here in case anybody needs to use blinking. :) |
Any update? |
Yes, sorry for the late answer. Just managed to finish the effect. This is the full code:
You can see it in effect here: https://sporedev.ro/pleiade/lobby.html Still working on the stroke. |
Thx you! I've complete this script for the scheme with a sections string list. By clicking on the line we highlight matched section! The popOver content I get with AJAX `` |
Hello,
I am trying to simulate a hover on the clickable areas of the website so that the user knows what can be clicked.
I camed up with this function:
<script> var $blink = $(".mapify-polygon"); setInterval(function(){ $blink.toggleClass("mapify-hover"); }, 4000); </script>
It seems to work well and add the class as intended if I use it on the area but if I use it on the polygon (where the hover class needs to be activated) it doesn't work anymore.
How can this be achieved? Am I targeting the wrong class?
Also, is there any that I could simulate the hover effect only or certain areas or maybe set a delay to the blinking? Like... an area would highlight first, after 2 seconds the next and so on. 10s pause if there's no action on the website and then it starts again.
The website address is https://sporedev.ro/pleiade
Thank you!
The text was updated successfully, but these errors were encountered: