universal-tilt-js/universal-tilt.js

Data exclude /(iPod|iPhone|iPad|Android)/ not working

Closed this issue · 9 comments

For some reason the /(iPod|iPhone|iPad|Android)/ data exclude won't work. On desktop in looks fine, however, on mobile phones it looks weird as hell.

My website: https://casinoxbonuses.com/

Hi!
I know where the problem is and I will try to fix it tomorrow.
I need to add additional checks for navigator user agent.

Hi!
I know where the problem is and I will try to fix it tomorrow.
I need to add additional checks for navigator user agent.

Hi, did you fix the issues yet?

Thanks in advance.

Hi!
Update will be available later today or tomorrow.

v2.0.5 (v2.0.4) probably fixes this bug

v2.0.5 (v2.0.4) probably fixes this bug

The bug on mobile devices is fixed, however, there is a new bug. If you navigate once again to my site https://casinoxbonuses.com/ you'll see that the boxes won't follow your mouse on hover. It just zooms in and out, no tilt effect. This happens only on desktop.

I added an external library (platform). If you use npm or yarn it is installed automatically. If you use CDN, you must add the script https://cdn.jsdelivr.net/npm/platform@1.3.5/platform.min.js before attaching universal-tilt.js. I will try to solve this better in the next updates.

I added an external library (platform). If you use npm or yarn it is installed automatically. If you use CDN, you must add the script https://cdn.jsdelivr.net/npm/platform@1.3.5/platform.min.js before attaching universal-tilt.js. I will try to solve this better in the next updates.

For some reason that lib wouldn't be included through CDN. Any possibility you can permanently fix this without including that library?

@JB1905

v2.0.5 (v2.0.4) probably fixes this bug

Btw it probably produces a bug, when base option is set. With 2.0.3 and base works just fine.
image
Problem is here:
image

Tomorrow I will release new version with built-in platform library