Get started with tsparticles-preset-hyperspace CDN
MIT licensed
Tsparticles-preset-hyperspace is a Three.js particle system preset for immersive, hyperspace effects.
Tags:- tsparticles
- particles.js
- particlesjs
- particles
- particle
- canvas
- jsparticles
- xparticles
- particles-js
- particles-bg
- particles-bg-vue
- particles-ts
- particles.ts
- react-particles-js
- react-particles.js
- react-particles
- react
- reactjs
- vue-particles
- ngx-particles
- angular-particles
- particleground
- vue
- vuejs
- preact
- preactjs
- jquery
- angularjs
- angular
- typescript
- javascript
- animation
- web
- html5
- web-design
- webdesign
- css
- html
- css3
- animated
- background
- confetti
- fireworks
- fireworks-js
- confetti-js
- confettijs
- fireworksjs
- canvas-confetti
Stable version
Copied!
How to start using tsparticles-preset-hyperspace CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-preset-hyperspace CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100%;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/worksans.min.css"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tsparticles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-preset-hyperspace/2.12.0/tsparticles.preset.hyperspace.min.js"></script>
<script>
const particlesContainer = document.querySelector('#tsparticles');
const particlesInit = async () => {
await tsparticles.load('tsparticles', null, {
container: particlesContainer,
preset: 'hyperspace'
});
};
const particlesLoaded = async () => {
await particlesContainer.tsparticles.updateOptions({
backgroundColor: {
r: 0,
g: 0,
b: 0,
a: 0.05
},
fpsLimit: 60,
interactivity: {
events: {
onClick: {
enable: true,
mode: 'repulse'
},
onHover: {
enable: true,
mode: 'grab'
},
resize: true
},
modes: {
grab: {
distance: 400,
lineLinked: {
opacity: 0.4,
width: 1
}
},
repulse: {
distance: 200,
duration: 0.4
}
}
},
particles: {
color: {
value: '#ffffff'
},
links: {
color: '#ffffff',
distance: 150,
opacity: 0.4,
width: 1
},
collisions: {
enable: true
},
move: {
direction: 'none',
enable: true,
outModes: {
default: 'bounce'
}
},
number: {
value: 160,
density: {
enable: true,
value_area: 800
}
},
opacity: {
value: 0.5,
random: true,
anim: {
enable: false,
speed: 1,
opacity_min: 0.1,
sync: false
}
},
size: {
value: 5,
random: true,
anim: {
enable: false,
speed: 4,
size_min: 0.1,
sync: false
}
}
},
detectRetina: true
});
};
particlesInit().then(particlesLoaded);
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!