We use jQuery in all of our builds unless otherwise agreed or requested by the client.

For an example of how we structure our JS folders, please see our Gulp template which can be download via: Gulp template

All vendor files should be placed in a vendor folder as illustrated in the Gulp template.

You should then have a site.js file which incorporates vendor and non-vendor JS instance, for example:

$(document).ready(function() {
	// target ie
	function addIEClasses() {
		var isIE = /*@cc_on!@*/false || !!document.documentMode;
		var isEdge = !isIE && !!window.StyleMedia;
		if (isIE || isEdge) {
	// match height

	// toggle nav
	$(".masthead__toggle").click(function(event) {
	// scroll to next section
	$(".hero__next").click(function(event) {
			scrollTop: $(this).offset().top
            }, 300
	// sticky nav on scroll
	var num = 180;
	$(window).bind('scroll', function () {
		if ($(window).scrollTop() > num) {
			$('.masthead').addClass('masthead--fixed animated fadeInDown');
		} else {
			$('.masthead').removeClass('masthead--fixed animated fadeInDown')
	// tabs
	$('ul.tabs li').click(function(){
		var tab_id = $(this).attr('data-tab');
		$('ul.tabs li').removeClass('current');


Common jQuery libraries we use on our projects are:

  • AOS (animate elements on scroll)
  • Slick Slider (for sliders)
  • Fancybox (for modals)
  • Masonry (for staggered grid layouts)
  • Isotope (similar to Masonry but with filters)
  • MatchHeight (to force elements to have the same height)