clean: remove Rellax scroll animations

- Unnecessary bloat and looked broken on certain screen sizes
This commit is contained in:
Martin Prokoph
2025-03-28 15:26:04 +01:00
parent 7d346c49f6
commit a72f0d4b19
6 changed files with 1674 additions and 22 deletions

View File

@@ -108,18 +108,4 @@ const {
}
</style>
</body>
</html>
<script>
import Rellax from 'rellax';
function initRellax() {
var rellax = new Rellax('.rellax', {
center: true
});
}
initRellax();
document.addEventListener('astro:after-swap', () => {
initRellax();
})
</script>
</html>