At the moment LayerSlider does not support a feature like this out of the box. If you have web development experience and aren't afraid of custom coding you can use the LayerSlider API. It allows you to perform common tasks like jumping to a specified slide. LayerSlider is built on standard web technologies, so you can freely use custom CSS or JavaScript code like you would do with any other element on your site.
For reference, here's a quick example. You can also find more examples and details on how to use the API on the linked site.
$( document ).on( 'mouseenter', '#myLayer', function() {
// This will jump to the second slide
$( '#mySlider' ).layerSlider( 2 );
// This will commence to the next slide
$( '#mySlider' ).layerSlider( 'next' );
});
I'm really trying hard to figure this out. Is it possible you can send me a demo of an example of this . Or maby you can explain from this code snippet from the eCommerce-Global-Hover-Example so here is the code for the left and write click arrow.
Now here is the jquery code snippet you gave me to enable a click by hovering
$( document ).on( 'mouseenter', '#myLayer', function() {
// This will jump to the second slide
$( '#mySlider' ).layerSlider( 2 );
// This will commence to the next slide
$( '#mySlider' ).layerSlider( 'next' );
});
I have tried to plug in some values with no luck. Can you show me what values from this example to make this work. I will give you the code from the whole slide just in case this example requires more code than above
Sorry about that, Ticksy didn't show your previous message from some reason.
My example code uses the myLayer ID. It can be changed to anything as long as it's a valid ID name. You should apply this ID to the element, which should register the hover event.
Also, the $( '#mySlider' ).layerSlider lines should be changed to target your slider with its own ID name. The mySlider ID is just there for example. And there's no need to use both of these lines. The LayerSlider API offers different functions and these two are there for demonstration only.
The pasted code from the eCommerce Global Hover template uses a feature called Smart Links. Basically, if you link a layer and enter #prev or #next (among others) for the href attribute, the slider will automatically execute the pre-defined function assigned to them when those layers are clicked. However, these are only working with the click events.
Hello,
Hope your doing well. How can I change a slide but hovering over the link rather than clicking on it?
Hello,
At the moment LayerSlider does not support a feature like this out of the box. If you have web development experience and aren't afraid of custom coding you can use the LayerSlider API. It allows you to perform common tasks like jumping to a specified slide. LayerSlider is built on standard web technologies, so you can freely use custom CSS or JavaScript code like you would do with any other element on your site.
For reference, here's a quick example. You can also find more examples and details on how to use the API on the linked site.
Best Regards,
John | Kreatura Dev Team
John,
I'm really trying hard to figure this out. Is it possible you can send me a demo of an example of this . Or maby you can explain from this code snippet from the eCommerce-Global-Hover-Example so here is the code for the left and write click arrow.
Now here is the jquery code snippet you gave me to enable a click by hovering
I have tried to plug in some values with no luck. Can you show me what values from this example to make this work. I will give you the code from the whole slide just in case this example requires more code than above
kind regards,
alex
Can you please reply thank you much appreciated
Hi Alex,
Sorry about that, Ticksy didn't show your previous message from some reason.
My example code uses the myLayer ID. It can be changed to anything as long as it's a valid ID name. You should apply this ID to the element, which should register the hover event.
Also, the $( '#mySlider' ).layerSlider lines should be changed to target your slider with its own ID name. The mySlider ID is just there for example. And there's no need to use both of these lines. The LayerSlider API offers different functions and these two are there for demonstration only.
The pasted code from the eCommerce Global Hover template uses a feature called Smart Links. Basically, if you link a layer and enter #prev or #next (among others) for the href attribute, the slider will automatically execute the pre-defined function assigned to them when those layers are clicked. However, these are only working with the click events.
Best Regards,
John | Kreatura Dev Team