Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when adding hotspot to a slider (siema slider) #18

Open
osinho opened this issue Aug 23, 2019 · 0 comments
Open

Issue when adding hotspot to a slider (siema slider) #18

osinho opened this issue Aug 23, 2019 · 0 comments

Comments

@osinho
Copy link

osinho commented Aug 23, 2019

Hi all,

I have a siema (https://github.com/pawelgrzybek/siema) slider running on my page. Adding hotspots to the visible slides is not an issue at all - adding them for slides that are not visible (visible as in not shown in the browser since overflow is set to hidden in the parent DIV - from a css perspective I believe they are set to visible) does not work.

I tried using siemas onChange event which fires every time slides change, but without any luck.

Within the onChange event I added this code:

$("#tattoo-slider-3").hotspot({
                        data: [
                            { "x":10, "y":10, "Title":"Travel Mugs","Message":"<a href='/dinnerware/tattoo-cilla-marea/?_bc_fsnf=1&Product=Mugs' class='button button--primary' style='line-height: 0.5rem;padding: 0.5rem;'>see details</a>" }
                        ],
                        tag: 'img', //optional (default is img)
                        interactivity: "hover", // options : click, none (default is hover),
                        pulse: true // this is a customization I added
                    });

I have a feeling the hotspots are not being set for items which are not visible on screen...

Can you point me into the right direction?

Thanks!
Marc

EDIT: here the link to the plugin in my production environment:
https://www.rosenthalusa-shop.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant