Streaming live at 10am (PST)

Jquery detect if first slide

Hi, I need to hide an element on my page only if the slider is showing the first slide. Is this possible with the webflow slider ?

Thanks

<script>
	$(document).ready( function(){
		if($('.w-slide:nth-child(2)').is(':visible')){ // if second slide is visible, hide element.
			$('.element').hide();
		}
		else{ // if second slide is not visible, show element
			$('.element').show();
		}
	});
</script>

Can you give me your share link, so I can test if this will work :slight_smile:

1 Like