aboutsummaryrefslogtreecommitdiff
path: root/template/script.js
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2021-10-09 01:54:47 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-10-09 01:54:47 +0200
commitff3e805fd10aab28ad4dde5144ba7b84cf186312 (patch)
tree3f04c284737baa91806d9b14beab3ac05ecac4e9 /template/script.js
parent7541ea741cdd332e97f8fd596f52b40d05bd69df (diff)
downloadmitjafelicijan.com-ff3e805fd10aab28ad4dde5144ba7b84cf186312.tar.gz
Added flip on over on CV image
Diffstat (limited to 'template/script.js')
-rwxr-xr-xtemplate/script.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/template/script.js b/template/script.js
index 0332221..e8b7039 100755
--- a/template/script.js
+++ b/template/script.js
@@ -12,4 +12,13 @@ window.addEventListener('load', () => {
12 evt.target.src = ditheredImage; 12 evt.target.src = ditheredImage;
13 }); 13 });
14 }); 14 });
15
16 // flip CV image on mouse over
17 document.querySelector('.cv-picture img').addEventListener('mouseover', evt => {
18 evt.target.style.transform = 'scaleX(-1)';
19 });
20
21 document.querySelector('.cv-picture img').addEventListener('mouseout', evt => {
22 evt.target.style.transform = 'scaleX(1)';
23 });
15}); 24});