mirror of
https://github.com/Motschen/midnightdust-eu.git
synced 2025-12-18 03:15:09 +01:00
Lots of fancy animations
- Tilt - Parallax - Animated Text
This commit is contained in:
@@ -70,7 +70,6 @@ const {
|
||||
// sticky footer on low content pages
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
@@ -110,3 +109,17 @@ 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>
|
||||
Reference in New Issue
Block a user