This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Make all div clickable with CSS <span>using absolute positioning</span></h2> | |
<div> | |
<a href="https://github.com/JoanClaret/" title="Github link">Github link</a> | |
<h2>Joan's Github</h2> | |
<p>Mixtape blog readymade, pork belly DIY sriracha hoodie. Cred gentrify freegan, swag DIY 90's tilde tousled listicle Thundercats. Seitan taxidermy Helvetica Blue Bottle, slow-carb Tumblr letterpress ugh plaid Thundercats mlkshk. | |
</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev --no-bin-link gulp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('.js-show').click(function(){ | |
var id = $(this).attr('id'); | |
var el = $('.' + id); | |
if ($(this).hasClass('open')){ | |
el.animate({height: '46px'}, 600); | |
} | |
else{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var $el = $('.sticky-layer'); | |
var $window = $(window); | |
$window.bind("scroll resize", function() { | |
var elHeight = $el.outerHeight(); | |
var windowHeight = $window.height(); | |
var scrolledHeight = $window.scrollTop(); | |
if ((windowHeight + scrolledHeight) > elHeight ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------ | |
// Breakpoints and media queries mixin | |
//------------------------------------------ | |
// | |
// Usage: | |
//------------------------------------------ | |
// | |
// @include breakpoint($breakpoint, $query1) { | |
// /* Styles */ | |
// } |
NewerOlder