Yup
This commit is contained in:
@ -93,4 +93,13 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const lenis = new Lenis({
|
||||
autoRaf: true,
|
||||
});
|
||||
|
||||
// Gallery interactions
|
||||
// On click on .photo element, toggle the 'full' class
|
||||
document.querySelectorAll('.photo').forEach(photoEl => {
|
||||
photoEl.addEventListener('click', () => {
|
||||
console.log('Photo clicked');
|
||||
photoEl.classList.toggle('full');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user