-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (25 loc) · 926 Bytes
/
Copy pathindex.js
File metadata and controls
33 lines (25 loc) · 926 Bytes
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
const hoverElement = document.getElementById('gradWrapper');
document.addEventListener('mousemove', (event) => {
const clientX = event.clientX;
const clientY = event.clientY;
hoverElement.style.setProperty('background', `radial-gradient(600px at ${clientX + 'px'} ${clientY + 'px'}, rgba(234, 78, 216, 0.15), transparent 80%)`);
})
function goToLink(link) {
window.open(link, "_blank");
}
function scrollToBottom() {
const rightPane = document.querySelector('.rightPane');
rightPane.scrollTop = rightPane.scrollHeight;
rightPane.scrollIntoView({
behavior: 'smooth',
block: 'end',
});
}
// script.js
// Feel free to add more interactivity if needed
document.addEventListener("DOMContentLoaded", function() {
const card = document.querySelector('.card-container');
card.addEventListener('click', function() {
card.classList.toggle('active');
});
});