Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

matteobruni/jquery-particles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Repository is no longer maintained

This repository is now part of https://github.com/matteobruni/tsparticles


tsParticles - jQuery wrapper Node.js CI

jQuery plugin for tsParticles

Installation

npm install jquery-particles

or from jsDelivr

jsDelivr

<!-- first include tsParticles -->
<script src="https://cdn.jsdelivr.net/npm/tsparticles@1.12.7/dist/tsparticles.min.js"></script>
<!-- then include jquery wrapper -->
<script src="https://cdn.jsdelivr.net/npm/jquery-particles@1.12.7/dist/jquery.particles.min.js"></script>

How to use

HTML

<div id="tsparticles"></div>
$("#tsparticles")
  .particles()
  .init(
    {
      /* params */
    },
    function (container) {
      // container is the particles container where you can play/pause or stop/start.
      // the container is already started, you don't need to start it manually.
    }
  );

// or

$("#tsparticles")
  .particles()
  .ajax("particles.json", function (container) {
    // container is the particles container where you can play/pause or stop/start.
    // the container is already started, you don't need to start it manually.
  });

*For all options you can checkout the readme here.

Need More Help?

Slack