Rename folder resources => assets

This commit is contained in:
Ferit Yiğit BALABAN
2022-08-11 19:40:31 +03:00
parent 45b8fd72be
commit ab8c5738af
120 changed files with 531 additions and 1125 deletions

15
assets/js/index.js Normal file
View File

@@ -0,0 +1,15 @@
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) {
if (entry.target.classList.contains('reverse'))
entry.target.classList.add('table-item-animation-reverse');
else
entry.target.classList.add('table-item-animation');
}
});
});
let targets = document.querySelectorAll('.table-item');
targets.forEach(target => {
observer.observe(target);
})