2
0
mirror of https://github.com/offen/website.git synced 2024-12-25 14:20:22 +01:00
website/homepage/theme/static/scripts/fade.js

11 lines
306 B
JavaScript
Raw Normal View History

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