Created
August 17, 2021 14:42
-
-
Save yinkakun/af2cb85249b16755517f7aa8af457162 to your computer and use it in GitHub Desktop.
OJpBXJZ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- tsParticles container --> | |
<div id="tsparticles"></div> | |
<!-- https://github.com/matteobruni/tsparticles --> | |
<div class="github"> | |
<a class="btn btn-link" href="https://github.com/matteobruni/tsparticles" title="Find more info on GitHub"> | |
<img class="img-fluid" id="gh-mark" src="https://cdn.matteobruni.it/images/particles/GitHub-Mark-120px-plus.png" alt=""> | |
<span id="gh-project">Made with tsParticles</span> | |
</a> | |
<div style="text-align: center"> | |
<a class="github-button" href="https://github.com/matteobruni/tsparticles" data-icon="octicon-star" data-show-count="true" aria-label="Star matteobruni/tsparticles on GitHub">Star</a> | |
<a class="github-button" href="https://github.com/matteobruni/tsparticles/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork matteobruni/tsparticles on GitHub">Fork</a> | |
</div> | |
</div> | |
<script async="" defer="" src="https://buttons.github.io/buttons.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tsParticles.load("tsparticles", { | |
fpsLimit: 60, | |
particles: { | |
number: { | |
value: 0 | |
}, | |
color: { | |
value: ["#00FFFC", "#FC00FF", "#fffc00"] | |
}, | |
shape: { | |
type: "confetti", | |
options: { | |
confetti: { | |
type: ["circle", "square"] | |
} | |
} | |
}, | |
opacity: { | |
value: 1, | |
animation: { | |
enable: true, | |
minimumValue: 0, | |
speed: 2, | |
startValue: "max", | |
destroy: "min" | |
} | |
}, | |
size: { | |
value: 7, | |
random: { | |
enable: true, | |
minimumValue: 3 | |
} | |
}, | |
links: { | |
enable: false | |
}, | |
life: { | |
duration: { | |
sync: true, | |
value: 5 | |
}, | |
count: 1 | |
}, | |
move: { | |
enable: true, | |
gravity: { | |
enable: true, | |
acceleration: 20 | |
}, | |
speed: 20, | |
decay: 0.1, | |
direction: "none", | |
random: false, | |
straight: false, | |
outModes: { | |
default: "destroy", | |
top: "none" | |
} | |
} | |
}, | |
interactivity: { | |
detectsOn: "window", | |
events: { | |
resize: true | |
} | |
}, | |
detectRetina: true, | |
background: { | |
color: "#232323" | |
}, | |
emitters: { | |
direction: "none", | |
life: { | |
count: 0, | |
duration: 0.1, | |
delay: 0.4 | |
}, | |
rate: { | |
delay: 0.1, | |
quantity: 100 | |
}, | |
size: { | |
width: 0, | |
height: 0 | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ---- reset ---- */ | |
body { | |
margin: 0; | |
font: normal 75% Arial, Helvetica, sans-serif; | |
} | |
canvas { | |
display: block; | |
vertical-align: bottom; | |
} | |
/* ---- tsparticles container ---- */ | |
#tsparticles { | |
position: fixed; | |
width: 100%; | |
height: 100%; | |
z-index: -1; | |
} | |
.github { | |
bottom: 10px; | |
right: 10px; | |
position: fixed; | |
border-radius: 10px; | |
background: #fff; | |
padding: 0 12px 6px 12px; | |
border: 1px solid #000; | |
} | |
.github a:hover, | |
.github a:link, | |
.github a:visited, | |
.github a:active { | |
color: #000; | |
text-decoration: none; | |
} | |
.github img { | |
height: 30px; | |
} | |
.github #gh-project { | |
font-size: 20px; | |
padding-left: 5px; | |
font-weight: bold; | |
vertical-align: bottom; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment