-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
55 lines (48 loc) · 1.67 KB
/
Copy pathapp.js
File metadata and controls
55 lines (48 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// i am trying to collobrate with the team members
// This is from main I can see that
// ********************************
// ********************************
const container = document.getElementById('trigger_container')
const navTwo = document.getElementsByClassName('nav2')
const navTwoToShow = document.getElementsByClassName('hide')
console.log(navTwoToShow)
console.log(navTwo)
console.log(container)
window.addEventListener('scroll',function(e) {
// const innerHeight = this.innerHeight;
// console.log(innerHeight ,'window height')
const containerBottom = container.getBoundingClientRect()
// console.log(containerBottom.bottom ,'container bottom')
if(containerBottom.bottom < 0){
// this.alert('Hello ')
// if(navTwo.classList.contains('change_opacity'))return 'hello';
// navTwo[0].classList.add('hide_con')
// navTwoToShow[0].classList.add('show')
navTwo[0].classList.add('change_opacity')
return;
}
if(containerBottom.bottom > 0){
// this.alert('Hello ')
// if(!navTwo.classList.contains('change_opacity'))return 'hello';
// navTwo[0].classList.remove('hide_con')
// navTwoToShow[0].classList.remove('show')
navTwo[0].classList.remove('change_opacity')
return;
}
})
var swiper = new Swiper(".swiper", {
slidesPerView: 10,
spaceBetween: 100,
centeredSlides: true,
autoplay: {
delay: 2000,
disableOnInteraction: false,
},
loop: true,
// navigation: {
// nextEl: ".next_arr",
// prevEl: ".prev_arr",
// },
});
// some content from ronalde
const realzph = 1000;