Skip to content

Commit

Permalink
switch to Waves in vanta.js
Browse files Browse the repository at this point in the history
  • Loading branch information
adhadse committed Jul 14, 2024
1 parent c7891c7 commit 8e9c19e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
21 changes: 12 additions & 9 deletions content/assets/js/home.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
document$.subscribe(() => {
VANTA.HALO({
VANTA.WAVES({
el: ".hero-container",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
baseColor: 0x0,
backgroundColor: 0x0,
xOffset: 0.09,
size: 0.90
})
})
minHeight: 200.0,
minWidth: 200.0,
scale: 1.0,
scaleMobile: 1.0,
color: 0x0,
shininess: 60.0,
waveHeight: 39.5,
waveSpeed: 0.95,
zoom: 0.65,
});
});
2 changes: 1 addition & 1 deletion overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
defer
></script>
<script
src="https://cdn.jsdelivr.net/npm/vanta@0.5.24/dist/vanta.halo.min.js"
src="https://cdn.jsdelivr.net/npm/vanta@0.5.24/dist/vanta.waves.min.js"
defer
></script>
{% endblock %} {% block hero %}
Expand Down
2 changes: 1 addition & 1 deletion overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
defer
></script>
<script
src="https://cdn.jsdelivr.net/npm/vanta@0.5.24/dist/vanta.halo.min.js"
src="https://cdn.jsdelivr.net/npm/vanta@0.5.24/dist/vanta.waves.min.js"
defer
></script>
{% endblock %} {% block scripts %} {{ super() }}
Expand Down

0 comments on commit 8e9c19e

Please sign in to comment.