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