• Flickity

    • Add Flickity Navigation on Custom position
      Show CodeHide Code
    • Disable carousel if single image
      Show CodeHide Code
    • Show CodeHide Code
    • Show CodeHide Code
  • Scroll related

    • "Color changing logo"
      Show CodeHide Code
    • Scroll to section
      Show CodeHide Code
    • Add visible class on Elements when in Viewport
      Show CodeHide Code
    • Move one div faster to top on scroll when in viewport
      Show CodeHide Code
    • Smooth parallax Effect on Background Images
      Show CodeHide Code
    • Subnav items get "selected" when in viewport
      Show CodeHide Code
  • Forms

    • Change DOM Order of Input and Label
      Show CodeHide Code
      $('.form-group label').each(function () {
      $(this).insertAfter($(this).next('input, textarea'));
      });
      $('.form-group input, .form-group textarea').each(function () {
      var val = $(this).val();
      if (val) {
      $(this).parent('.form-group').addClass('has-val');
      }
      });
      $('body').on('change', '.form-group input, .form-group textarea', function () {
      var val = $(this).val();
      if (val) {
      $(this).parent('.form-group').addClass('has-val');
      }
      else {
      $(this).parent('.form-group').removeClass('has-val');
      }
      });
  • Video

    • Prevent <video> from loading on Smartphones
      Show CodeHide Code
  • Animations

    • Split string in 1-character-span and add incremental delay
      Show CodeHide Code
  • Layout

    • Main minimum height related to windows height
      Show CodeHide Code
    • Show CodeHide Code