Skip to content

lacuevatv/berna

Repository files navigation

Berna

Elementos

  • Html5, css3, jquery
  • modernizr
  • Instagram pluggin widget para mostrar data: Link / Hubo que autorizar el usuario.
  • php: mobile-detect
  • Script de animación para mostrar cuando algo está en pantalla o no:
$( window ).on('load', function(){

    var $animation_elements = $('.animation-element');
    var $window = $(window);

    function check_if_in_view() {
      var window_height = $window.height();
      var window_top_position = $window.scrollTop();
      var window_bottom_position = (window_top_position + window_height);

      $.each($animation_elements, function() {
        var $element = $(this);
        var element_height = $element.outerHeight();
        var element_top_position = $element.offset().top;
        var element_bottom_position = (element_top_position + element_height);

        //check to see if this current container is within viewport
        if ((element_bottom_position >= window_top_position) &&
            (element_top_position <= window_bottom_position)) {
          $element.addClass('in-view');
        } else {
          $element.removeClass('in-view');
        }
      });
    }

    $window.on('scroll resize', check_if_in_view);
    $window.trigger('scroll');
    
});//ON LOAD
  • favicon generator

About

Berna Brothers Brewery CO Para HIT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published