-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpandNav.js
More file actions
20 lines (18 loc) · 769 Bytes
/
expandNav.js
File metadata and controls
20 lines (18 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// const expandProfileList = document.querySelector('.expandProfileList')
// const profileList = document.querySelector('.profileList')
// profileList.style.display = 'none'
// expandProfileList.addEventListener('click', () => {
// if (profileList.classList[1] === undefined) {
// profileList.classList.add('expand')
// expandProfileList.style.transform = 'rotate(180deg)'
// profileList.style.display = null
// } else {
// profileList.classList.remove('expand')
// profileList.classList.add('contract')
// expandProfileList.style.transform = null
// setTimeout(() => {
// profileList.classList.remove('contract')
// profileList.style.display = 'none'
// }, 310)
// }
// })