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
// Define the breakpoints | |
$breakpoint-small: 600px; | |
$breakpoint-med-small: 960px; | |
$breakpoint-med: 1175px; | |
@mixin screen($size, $type: max, $pixels: $breakpoint-small) { | |
@if $size == 'small' { | |
@media screen and ($type + -width: $breakpoint-small) { | |
@content; | |
} |
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
$(window).mousemove(function (e) { | |
var mousePosX = (e.pageX / $(window).width()) * 100; | |
var mousePosY = (e.pageY / $(window).height()) * 100; | |
// console.log(mousePosY) | |
$('.thumbs-block').css('backgroundPosition', mousePosX + '% ' + mousePosY +'%'); | |
}); |
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
// Requires jquery color | |
$(document).ready(function() { | |
spectrum(); | |
function spectrum(){ | |
var hue = 'rgb(' + | |
(Math.floor(Math.random() * 256)) + | |
',' + (Math.floor(Math.random() * 256)) | |
+ ',' + (Math.floor(Math.random() * 256)) |
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
$('a[href^="#"]').on('click', function(event) { | |
var target = $( $(this).attr('href') ); | |
if( target.length ) { | |
event.preventDefault(); | |
$('html, body').animate({ | |
scrollTop: target.offset().top | |
}, 6500); | |
} | |
}); |
NewerOlder