6 lines
176 B
JavaScript
6 lines
176 B
JavaScript
{6892bed593f91c6a29583f762d05408c2bd057c3 true 176 main.js 0xc001f4db20}
let text = document.getElementById('text');
|
|
window.addEventListener('scroll', function(){
|
|
let value = window.scrollY;
|
|
text.style.marginBottom = value * 2 + '2px';
|
|
});
|