Hello everyone,
I am trying to put the slider arrows outside of the slider div through code, as moving them through absolute positioning doesn’t work with some of the effects on the page. Anyway, I am currently using this code:
<script>
var Webflow = Webflow || [];
Webflow.push(function() {
var l = $('#CustomSlider1 .left-arrow-2 w-slider-arrow-left');
var r = $('#CustomSlider1 .right-arrow-3 w-slider-arrow-right');
$('#CustomSlider1')
.on('click', '.slider-left', function() {
l.trigger('tap');
})
.on('click', '.slider-right', function() {
r.trigger('tap');
});
});
</script>
which unfortunately is not working.
Any help will be appreciated.