diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-08-30 03:27:50 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-08-30 03:27:50 +0200 |
| commit | db3e904b1753164ae9a136fa373f81d3b89a3679 (patch) | |
| tree | c0577b0640e56d7ffa39615b119bc5dc44de309e /content | |
| parent | 2cee10de23433ab4931e793e51bed4786fee3c20 (diff) | |
| download | mitjafelicijan.com-db3e904b1753164ae9a136fa373f81d3b89a3679.tar.gz | |
Added animation of my image in CV
Diffstat (limited to 'content')
| -rw-r--r-- | content/pages/curriculum-vitae.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/content/pages/curriculum-vitae.md b/content/pages/curriculum-vitae.md index fe79fb3..27e4aff 100644 --- a/content/pages/curriculum-vitae.md +++ b/content/pages/curriculum-vitae.md | |||
| @@ -16,10 +16,22 @@ draft: false | |||
| 16 | 16 | ||
| 17 | <div class="cv-picture"> | 17 | <div class="cv-picture"> |
| 18 | 18 | ||
| 19 |  | 19 |  |
| 20 | 20 | ||
| 21 | </div> | 21 | </div> |
| 22 | 22 | ||
| 23 | <script> | ||
| 24 | window.addEventListener('load', async () => { | ||
| 25 | // flip CV image on mouse over | ||
| 26 | const cvImage = document.querySelector('.cv-picture img'); | ||
| 27 | if (cvImage) { | ||
| 28 | setInterval(() => { | ||
| 29 | cvImage.style.transform = cvImage.style.transform === 'scaleX(1)' ? 'scaleX(-1)' : 'scaleX(1)'; | ||
| 30 | }, 1000); | ||
| 31 | } | ||
| 32 | }); | ||
| 33 | </script> | ||
| 34 | |||
| 23 | **Mitja Felicijan** | 35 | **Mitja Felicijan** |
| 24 | 36 | ||
| 25 | Email me at *[m@mitjafelicijan.com](mailto:m@mitjafelicijan.com?subject=Website+CV+Contact)* | 37 | Email me at *[m@mitjafelicijan.com](mailto:m@mitjafelicijan.com?subject=Website+CV+Contact)* |
