This file contains hidden or 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 lock_scroll(){ | |
// lock scroll position, but retain settings for later | |
var scrollPosition = [ | |
self.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft, | |
self.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop | |
]; | |
var html = jQuery('html'); // it would make more sense to apply this to body, but IE7 won't have that | |
html.data('scroll-position', scrollPosition); | |
html.data('previous-overflow', html.css('overflow')); | |
html.css('overflow', 'hidden'); |
This file contains hidden or 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
var m_lastScrollTop = 0; | |
$(window).scroll(function() { | |
var m_getscroll = $(window).scrollTop(); | |
//Scroll UP & DOWN | |
m_getscroll = m_getscroll; | |
if (m_getscroll > m_lastScrollTop) { //-----------DOWN | |
console.log('pa abajo'); | |
} else { //-----------UP |
This file contains hidden or 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
// styling a | |
$a-tags: 'a, a:active, a:hover, a:visited'; | |
$a-tags-hover: 'a:active, a:hover'; | |
#{$a-tags} { | |
color: inherit; | |
text-decoration: none; | |
@include transition(all 0.3s ease-in-out); | |
} |
NewerOlder