commit 7e9f45f56ec58284c0dcb9f71fc98e1b9269a171 Author: Pina Vetrano Date: Thu Feb 23 11:25:13 2023 +0100 first commit diff --git a/assets/css/style.css b/assets/css/style.css new file mode 100644 index 0000000..e69de29 diff --git a/assets/js/app.js b/assets/js/app.js new file mode 100644 index 0000000..c995a8d --- /dev/null +++ b/assets/js/app.js @@ -0,0 +1,12 @@ +'use strict'; +// image animation (joao) + +var upItem = document.querySelector('.images--right'); +var bottomItem = document.querySelector('.images--left'); +const sideItem = document.querySelector('.svg__side'); + +window.addEventListener("scroll", function() { + upItem.style.transform = "translateX(" + window.pageYOffset / 15 + "px)"; + bottomItem.style.transform = "translateX(" + -window.pageYOffset / 10 + "px)"; + sideItem.style.transform = "translateY(" + window.pageYOffset / 5 + "px)"; +}); diff --git a/index.html b/index.html new file mode 100644 index 0000000..73ed859 --- /dev/null +++ b/index.html @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + IOLCE Pina Vetrano — DWT — Heaj + + + + + + RUX + + +

RUX

+ + + \ No newline at end of file