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
var scrolling | |
function scrollToBottom() { | |
if (scrolling) | |
requestAnimationFrame(scrollToBottom) | |
window.scrollTo(0, document.body.offsetHeight) | |
} | |
function startScrolling() { |
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 triggerTypekitFinish() { | |
if (typeof window.CustomEvent === 'function') { | |
var event = new CustomEvent('typekit-finish'); | |
} else { | |
var event = document.createEvent('CustomEvent'); | |
event.initCustomEvent('typekit-finish', true, true, {}); | |
} | |
document.documentElement.dispatchEvent(event); | |
} | |
try { |
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
// SASS Mixins | |
// ----------- | |
// Force an element to fill its container | |
@mixin fill { | |
position: absolute; | |
top: 0; bottom: 0; | |
left: 0; right: 0; | |
} |
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
// | |
// LESS Utility Mixins | |
// ------------------- | |
// Fill the parent element | |
.fill(@spacing: 0) { | |
position: absolute; | |
top: @spacing; bottom: @spacing; | |
left: @spacing; right: @spacing; | |
} |
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
$.stellar.scrollProperty.scrollerScroll = { | |
getLeft: function($elem) { return scroller.getValues().left; }, | |
setLeft: function($elem, val) { scroller.scrollTo(val); }, | |
getTop: function($elem) { return scroller.getValues().top; }, | |
setTop: function($elem, val) { scroller.scrollTo(null, val); } | |
} |