We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3165f61 commit 939cb4cCopy full SHA for 939cb4c
src/layouts/Base.astro
@@ -83,13 +83,15 @@ import Footer from '../components/Footer.astro';
83
max: 15,
84
speed: 400,
85
glare: true,
86
- 'max-glare': 0.3
+ 'max-glare': 0.3,
87
+ gyroscope: false
88
});
89
}
90
91
// Initialize particles background
- if (window.tsParticles) {
92
- tsParticles.load('tsparticles', {
+ const particlesContainer = document.getElementById('tsparticles');
93
+ if (window.tsParticles && particlesContainer) {
94
+ tsParticles.load(particlesContainer, {
95
fpsLimit: 60,
96
particles: {
97
number: { value: 50 },
0 commit comments