Interactive background
A free Carrd plugin template to embed an interactive background of particles & polygons with physics effect.
Tutorial on how to customize the interactive background here.
💜 Powered by particles.js. Template made by @jasonleow.
Tutorial
How to customize the interactive background:CHANGING BACKGROUND COLOR
- To change background color, go to the Embed element, under Code field.
- Find the <style>
tag, look for this code:<style>
- Change the color hex code of
#particles-js {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #000000;
background-image: url("");
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
}
</style>background-color: #000000;
to the the one you need. Use the color picker on Google if you need help getting the hex code.---------------------------------------------------------------------------------CHANGING COLOR OF PARTICLE
- To change color of the particles, go to the Embed element, under Code field.
- Find the <script>
tag after the </style>
tag:<script>
- Change the color hex code of
particlesJS("particles-js", {
particles: {
number: {
value: 50,
density: {
enable: true,
value_area: 800
}
},
color: {
value: "#ffffff"
},color: { #ffffff },;
to the the one you need. Use the color picker on Google if you need help getting the hex code.---------------------------------------------------------------------------------CHANGING COLOR OF PARTICLE LINE LINKS
- To change color of the line linking the particles, go to the Embed element, under Code field.
- Find the <script>
tag after the </style>
tag, and find the line_linked
property:line_linked: {
- Change the color hex code of
enable: true,
distance: 150,
color: "#ffffff",
opacity: 0.4,
width: 1
},color: "#ffffff",
to the the one you need. Use the color picker on Google if you need help getting the hex code.---------------------------------------------------------------------------------CHANGING SHAPES OF THE PARTICLES
- To change shapes of the particles, go to the Embed element, under Code field.
- Find the <script>
tag after the </style>
tag, and find the shape
property:shape: {
- Delete the shapes you do not want, e.g. if you just want circle and star, you delete the values till it looks like this:
type: ["circle", "triangle", "image", "edge", "polygon", "star"],
stroke: {
width: 0,
color: "#ffffff"
},shape: {
- To use an image, delete the values till it's like that:
type: ["circle", "star"],
...shape: {
- Scroll down and add the direct URL of the image here (should end with a .jpg, .png or .svg). Adjust the width and height for size of image.
type: ["image"],
...image: {
---------------------------------------------------------------------------------DOCUMENTATION FOR PARTICLES.JS
src: "https://plugins.carrd.co/assets/images/favicon.png",
width: 100,
height: 100
}
- For more info, read the documentation for particles.js here:https://github.com/VincentGarreau/particles.js