parallax
This commit is contained in:
@@ -375,7 +375,7 @@
|
||||
function toggleBgMiddle(pageHeight) {
|
||||
const bgMiddle = document.querySelector('#bg-middle');
|
||||
const bgOnze = document.querySelector('#bg-11');
|
||||
if (pageHeight < 2000) {
|
||||
if (pageHeight < 2500) {
|
||||
bgMiddle.style.display = 'none';
|
||||
bgOnze.style.display = 'none';
|
||||
} else {
|
||||
@@ -383,6 +383,13 @@
|
||||
bgOnze.style.display = 'block';
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// bg parallax animation
|
||||
//
|
||||
var rellax = new Rellax('.bgImg', {
|
||||
wrapper: 'body',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user