Get started with tsparticles-preset-stars CDN
MIT licensed
Tsparticles-preset-stars is a library for creating customizable 3D star particle 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-stars CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-preset-stars CDN - cdnhub.io</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100vh; }
</style>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/worksans-v14-latin-regular.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/js/tsparticles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-preset-stars/2.12.0/tsparticles.preset.stars.min.js"></script>
<script>
const particlesContainer = document.createElement('div');
particlesContainer.id = 'tsparticles';
document.body.appendChild(particlesContainer);
const particlesInit = async () => {
await tsparticles.load('tsparticles', 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/parts/tsparticles.json');
const preset = new TSParticles.StarPreset();
const particleSystem = new TSParticles.DefaultPlugin(particlesContainer, preset);
particleSystem.init();
};
particlesInit();
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!