On the introduction of my website, I used “mouse move over element” interaction to animate the white circle. It’s lovely to me. But I would like it to work the same with a finger on phone/tablet… Is there any solution for this ? Would make the responsive stuff easier.
HI @Matthew firstly mobile devices does not understand what :hover mean but there are ways around. You can find many articles and solution how to on internet fo eg.
Hey Stan, thanks for your answer ! Sadly i’m not talking about the simple hover interaction. Hit my website, it’s the very intro of it on desktop, when the light follows the mouse. It would be wonderful if it could work the “same” on mobile… (light follows finger).
Hi @Matthew like I have mentioned :hover on mobile doesn’t exist, you have to deal with touch instead. Tracking touch is a bit complex task and you can look on internet to find some library to solve this issue for you or use Web API Touch events.
here are some articles to read
You may face issues that this will not work on all devices or with specific mobile OS, if so, you will need to make some work around to make it work everywhere .