This commit is contained in:
SBD
2023-11-18 18:10:31 +03:00
parent 11c35c9abd
commit 47c228d048
3 changed files with 16 additions and 4 deletions

View File

@@ -534,6 +534,9 @@
position: absolute;
width: 320px;
}
.menu_buttons.filters{
transition: 200ms;
}
.menu_buttons.left.close.filters{
left: -347px;
transition: 200ms;

View File

@@ -2356,12 +2356,12 @@
max-height: 83vh;
left: 0;
padding: 13px;
transition: 200ms;
/* position: fixed; */
float: left;
text-align: left;
position: absolute;
top: 293px;
transition: 0ms;
}
.support .menu_buttons.left.open{

View File

@@ -76,11 +76,20 @@ window.addEventListener('scroll', () => {
function scroll_ev (event,el){
let curtain = document.querySelector(".menu_buttons.filters")
let user_type = getInfoAboutUser()
let ch = el.scrollY
let top = 293 - ch + 20
if (user_type !== 'mobile'){
if (el.scrollY === 300 || el.scrollY > 300){
curtain.style.top = "0"
if (el.scrollY === 300){
curtain.style.top = `${top}px`
} else if (el.scrollY < 300) {
curtain.style.top = "293px"
curtain.style.top = `${top}px`
} else if (el.scrollY > 300){
top = 15
curtain.style.top = `${top}px`
}
if (el.scrollY === 0){
top = 293 - ch
curtain.style.top = `${top}px`
}
}
}