-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
37 lines (31 loc) · 1.11 KB
/
script.js
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
34
35
36
37
/* ===( CODE AASHU )=== */
const gcfe = document.querySelector('.gcfe');
const ocfe = document.querySelector('.ocfe');
const pcfe = document.querySelector('.pcfe');
const green = document.querySelector('.green');
const orange = document.querySelector('.orange');
const pink = document.querySelector('.pink');
gcfe.addEventListener('click', ()=>{
green.style.opacity = '1'
green.style.transform = 'rotate(0deg)'
pink.style.opacity = '0'
pink.style.transform = 'rotate(-90deg)'
orange.style.opacity = '0'
orange.style.transform = 'rotate(-90deg)'
})
ocfe.addEventListener('click', ()=>{
orange.style.opacity = '1'
orange.style.transform = 'rotate(0deg)'
pink.style.opacity = '0'
pink.style.transform = 'rotate(-90deg)'
green.style.opacity = '0'
green.style.transform = 'rotate(-90deg)'
})
pcfe.addEventListener('click', ()=>{
pink.style.opacity = '1'
pink.style.transform = 'rotate(0deg)'
green.style.opacity = '0'
green.style.transform = 'rotate(-90deg)'
orange.style.opacity = '0'
orange.style.transform = 'rotate(-90deg)'
})