Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <!-- sample from -->
<!-- tsParticles container -->
<div id="tsparticles"></div>
<div class="github">
  <a class="btn btn-link" href="" title="Find more info on GitHub">
    <img class="img-fluid" id="gh-mark" src="" alt="">
    <span id="gh-project">Made with tsParticles</span>
    <a class="github-button" href="" data-icon="octicon-star" data-show-count="true" aria-label="Star matteobruni/tsparticles on GitHub">Star</a>
    <a class="github-button" href="" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork matteobruni/tsparticles on GitHub">Fork</a>
<script async="" defer="" src=""></script>


                /* ---- reset ---- */
body {
  margin: 0;
  font: normal 75% Arial, Helvetica, sans-serif;

canvas {
  display: block;
  vertical-align: bottom;
/* ---- tsparticles container ---- */
#tsparticles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;

.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;



                tsParticles.load("tsparticles", {
  fpsLimit: 60,
  interactivity: {
    detectsOn: "canvas",
    events: {
      resize: true
  particles: {
    color: {
      value: [
    move: {
      attract: {
        enable: false,
        rotate: {
          x: 800,
          y: 800
      direction: "none",
      enable: true,
      outModes: {
        default: "destroy"
      random: false,
      speed: 3,
      straight: false,
      trail: {
        fillColor: "#000",
        length: 30,
        enable: true
    number: { density: { enable: true, area: 800 }, value: 0 },
    opacity: {
      value: 1
    shape: {
      type: "circle"
    size: {
      value: 25,
      animation: {
        startValue: "min",
        enable: true,
        minimumValue: 1,
        speed: 2,
        destroy: "max",
        sync: true
  detectRetina: true,
  emitters: {
    direction: "none",
    rate: {
      quantity: 5,
      delay: 0.3
    size: {
      width: 0,
      height: 0
    position: {
      x: 50,
      y: 50