Hi Guys,
Can anyone tell me how to run custom code at different breakpoints? (manually without Weblow interactions)
For example, the below script sets a buttons state to active when clicked.
<script>
$('.game-top-level').on('click', function(){
$('.game-top-level').removeClass('active-item')
$(this).addClass('active-item')
});
</script>
It works great and on Desktop.
I would however like to run a different script for tablet and mobile sizes.
Webflow has this UI for it below, but I would like to do the same with code.
Any help would be much appreciated!
Thank you!