a
This commit is contained in:
parent
6a21d48333
commit
c6b1937e6c
13 changed files with 1153 additions and 0 deletions
17
assets/js/main.js
Normal file
17
assets/js/main.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
let portfolio = document.getElementsByClassName('portfolio');
|
||||
let art = document.getElementsByClassName('art');
|
||||
let lore = document.getElementsByClassName('lore');
|
||||
let box = document.getElementById('box');
|
||||
|
||||
let links = [ portfolio[0], art[0], lore[0] ];
|
||||
|
||||
links.forEach((link) => {
|
||||
link.addEventListener('mouseover', (e) => {
|
||||
console.log('hovered');
|
||||
box.classList.add('colorBorder');
|
||||
});
|
||||
link.addEventListener('mouseleave', (e) => {
|
||||
console.log('left');
|
||||
box.classList.remove('colorBorder');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue