2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 17:10:29 +01:00
website/homepage/theme/static/scripts/fade.js

11 lines
306 B
JavaScript

;(function ($) {
$(document).ready(function () {
$(window).scroll(function () {
if ($(window).width() > 480) {
var scrollProgress = parseInt($(window).scrollTop(), 10)
$('body.index .icon').css('opacity', Math.min(scrollProgress / 100, 1))
}
})
})
})(window.jQuery)