Skip to content

Instantly share code, notes, and snippets.

View juriAndreiczuk's full-sized avatar

Juri juriAndreiczuk

  • Poland
View GitHub Profile
//html
<header class="header">
<div class="container">
<div class="header__wrap d-flex justify-content-between align-items-center">
<div class="header__logo">
<img class="header__logo-image" src="" alt="logo">
<p class="header__logo-text"></p>
</div>
<nav class="header__nav">
css
//mySlide
.mySlide {
@extend .relative;
@extend .flex;
@extend .ai-center;
@extend .o-hidden;
height: 500px;
pug
header.m-header
nav.m-menu
div.wrap
div.logo
h2.logo__ttl Firma
p.logo__txt slogan
ul.m-menu-list
li.m-menu-list__item
.m-header {
width: 100%;
height: vh(100);
position: fixed;
background: $body-color;
.wrap {
height: 100%;
justify-content: space-between;
align-items: center;
}
@juriAndreiczuk
juriAndreiczuk / header.js
Last active October 4, 2017 19:17
header toggle transparent
$(document).ready(function(){
$(window).bind('scroll', function(){
if($(this).scrollTop() > '0') {
$('header').css({
'background-color': 'white',
'box-shadow' : '2px 2px 5px #333'
});
} else {
$('header').css({
'background-color': 'transparent',