chihung
1/25/2019 - 3:54 AM

add header animation when page loading

jQuery(document).ready(function($) {
  $(window).on('load', function () {
    $('#header').addClass('active');
  });
});

#header {
  @include opacity (0);
  transition: all .6s ease-in-out;

  &.active {
    @include opacity (1);
  }
}