mirror of
https://github.com/offen/website.git
synced 2024-11-25 18:20:28 +01:00
11 lines
307 B
JavaScript
11 lines
307 B
JavaScript
;(function ($) {
|
|
$(document).ready(function () {
|
|
$(window).scroll(function () {
|
|
if ($(window).width() > 960) {
|
|
var scrollProgress = parseInt($(window).scrollTop(), 10)
|
|
$('body.index .brand').css('opacity', Math.min(scrollProgress / 100, 1))
|
|
}
|
|
})
|
|
})
|
|
})(window.jQuery)
|