Skip to content

Instantly share code, notes, and snippets.

View AlexEstar's full-sized avatar

Alex AlexEstar

View GitHub Profile
@AlexEstar
AlexEstar / button.sass
Created August 22, 2017 14:37 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
@AlexEstar
AlexEstar / Menu fadeIn Out
Created November 8, 2016 23:10
jQuery Menu fadeIn/Out
$(".toggle_mnu").click(function() {
if($(".top_mnu").is(":visible")) {
$(".top_mnu").fadeOut(600);
} else {
$(".top_mnu").fadeIn(600);
};
});
@AlexEstar
AlexEstar / Resize Height
Last active November 7, 2016 22:46
jQuery Resize Height
function heightDetect() {
$(".main_head").css("height", $(window).height());
};
heightDetect();
$(window).resize(function() {
heightDetect();
});
@AlexEstar
AlexEstar / BG
Created November 7, 2016 19:16
jQuery bg on main height
$(".main_head").css("min-height", $(window).height());
@AlexEstar
AlexEstar / Page preload
Last active November 7, 2016 19:17
jQuery page preload
#loader {
background: none repeat scroll 0 0 #ffffff;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 9999;