×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Kale Waite
Added: Apr 12, 2017 11:02 PM
Views: 10
Tags: no tags
  1. $(window).scroll(function() {
  2.     ($(window).scrollTop() < 1) ? $('.navbar').addClass('navbar-transparent') : $('.navbar').removeClass('navbar-transparent');
  3. });