I am working on a Foundation 5 website and i would like to detect the breakpoint change when the user resize the browser window. Here is a workaround found in the Foundation Forum.
1. Add the following piece of HTML to your website. Since i am working with Drupal 7 with the Foundaiton 5 theme, i just add it to the page.tpl.php in the subtheme.
<!-- For breakpoints checking in js --> <div id="breakpoints"> <div class="breakpoint-small show-for-small-only" data-size="small"></div> <div class="breakpoint-medium show-for-medium-only" data-size="medium"></div> <div class="breakpoint-large show-for-large-only" data-size="large"></div> </div>
Continue reading Foundation 5 – Execute Javascript/jQuery on breakpoint changed