mirror of
https://github.com/Motschen/midnightdust-eu.git
synced 2025-12-18 03:15:09 +01:00
clean: remove Rellax scroll animations
- Unnecessary bloat and looked broken on certain screen sizes
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user