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

11 lines
311 B
JavaScript
Raw Normal View History

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