-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
486d08f
commit da372c7
Showing
55 changed files
with
1,227 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
const observer = new IntersectionObserver((entries) => { | ||
entries.forEach((entry) => { | ||
console.log(entry) | ||
if (entry.isIntersecting ) { | ||
entry.target.classList.add('show'); | ||
} else { | ||
entry.target.classList.remove('show'); | ||
} | ||
}); | ||
}); | ||
|
||
const hiddenElements = document.querySelectorAll('.hidden1'); | ||
hiddenElements.forEach((el) => observer.observe(el)); | ||
|
||
|
||
|
||
const observer1 = new IntersectionObserver((entries) => { | ||
entries.forEach((entry) => { | ||
console.log(entry) | ||
if (entry.isIntersecting) { | ||
entry.target.classList.add('show'); | ||
} else { | ||
entry.target.classList.remove('show'); | ||
} | ||
}); | ||
}); | ||
|
||
const hiddenElements1 = document.querySelectorAll('.hidden2'); | ||
hiddenElements1.forEach((el) => observer1.observe(el)); | ||
|
||
|
||
const observer2 = new IntersectionObserver((entries) => { | ||
entries.forEach((entry) => { | ||
console.log(entry) | ||
if (entry.isIntersecting) { | ||
entry.target.classList.add('show'); | ||
} else { | ||
entry.target.classList.remove('show'); | ||
} | ||
}); | ||
}); | ||
|
||
const hiddenElements2 = document.querySelectorAll('.hidden3'); | ||
hiddenElements2.forEach((el) => observer2.observe(el)); | ||
|
||
|
||
let scrollContainer = document.querySelector(".gallery"); | ||
let backBtn = document.getElementById("backbutton"); | ||
let nextBtn = document.getElementById("nextbutton"); | ||
|
||
scrollContainer.addEventListener("wheel", (evt)=>{ | ||
// evt.preventDefault(); | ||
scrollContainer.scrollleft += evt.deltaY; | ||
}); | ||
|
||
nextBtn.addEventListener("click", ()=>{ | ||
|
||
scrollContainer.style.scrollBehavior = "smooth"; | ||
scrollContainer.scrollLeft += 370; | ||
}); | ||
backBtn.addEventListener("click", ()=>{ | ||
|
||
scrollContainer.style.scrollBehavior = "smooth"; | ||
scrollContainer.scrollLeft -= 370; | ||
}); |
Oops, something went wrong.