2
0
mirror of https://github.com/offen/website.git synced 2024-11-26 18:50:27 +01:00
website/homepage/theme/static/scripts/fade.js

11 lines
307 B
JavaScript
Raw Normal View History

;(function ($) {
$(document).ready(function () {
$(window).scroll(function () {
2019-09-10 09:17:04 +02:00
if ($(window).width() > 960) {
var scrollProgress = parseInt($(window).scrollTop(), 10)
$('body.index .brand').css('opacity', Math.min(scrollProgress / 100, 1))
}
})
})
})(window.jQuery)