Get started with tsparticles-shape-cards CDN
MIT licensed
3D shape particles library: TSParticles-Shape-Cards customizes cards in Three.js.
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-shape-cards CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-shape-cards CDN - cdnhub.io</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100vh; }
</style>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/worksans@4.2.0/worksans.min.css"></script>
<script src="https://cdn.jsdelivr.net/npm/@tweenjs/tween.min/dist/TWEEN.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.122.0/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.122.0/examples/js/Detector.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-shape-cards/2.12.0/tsparticles.shape.cards.min.js"></script>
<script>
if (!Detector.webgl) {
Detector.addGetWebGLMessage();
return;
}
const particles = new TSParticles.ShapeCards({
container: document.querySelector('#tsparticles'),
shapeType: 'cards',
shape: {
type: 'custom',
options: {
card: {
width: 100,
height: 150,
borderRadius: 10,
borderWidth: 2,
borderColor: '#fff',
backgroundColor: '#4caf50',
textColor: '#fff',
textFont: 'Work Sans, sans-serif',
textSize: 24,
textAlign: 'center',
textLineHeight: 1.2,
text: 'Hello, World!',
},
},
},
particlesNumber: 10,
options: {
background: {
color: '#000',
},
fpsLimit: 60,
interactivity: {
events: {
onClick: {
enable: true,
mode: 'push',
},
onHover: {
enable: true,
mode: 'repulse',
},
},
modes: {
push: {
distance: 40,
duration: 0.4,
},
repulse: {
distance: 100,
duration: 0.4,
},
},
},
pauseOnInteraction: false,
hideOnClick: false,
},
style: {
position: 'fixed',
top: '0',
left: '0',
width: '100%',
height: '100vh',
},
});
particles.add(true);
</script>
</body>
</html>
Copied!
Copied!