Add Pixels Particle Animation to An Image | Pict2Pix.js

Pict2Pix.js is a library for adding pixel animation to an image using the Canvas API.

Pict2Pix particles, Pict2Pix particles examples, pixi particles editor, pixi particles cdn, particle effects generator, pixijs, Pict2Pix js particle example


  • image: Mandatory. It is the image which you want to add de pixels effect
  • numberOfParticles: Optional. A number of particles in the image. Be careful about the perfomance if you add a big number of particles. The default value is 3000.
  • horizontalSpeed: Optional. The horizontal speed of the particles. Can be positive or negative. Zero for no horizontal movement. The default value is 1.
  • verticalSpeed: Optional. The vertical speed of the particles. Can be positive or negative. Zero for no vertical movement. The default value is 1.
  • particleType: Optional. Type effect. The default value is ‘straight-particle’
    • ‘straight-particle’
    • ‘twisted-particle’

How to make use of it:

1. Import the minified model of the Pict2Pix.js library into the doc.

<script src="/dist/pict2pix.min.js"></script>

2. Initialize the library on the goal picture and complete.

<img id="image-demo" src="demo.jpg" />
const imageDemo = document.getElementById('image-demo');
window.onload = function initialize() {
    image: imageDemo

3. Specify the particle sort. Can be both ‘straight-particle’ or ‘twisted-particle’.

  image: imageDemo,
  particleType: 'twisted-particle',

4. Specify the variety of particles to generate.

  image: imageDemo,
  numberOfParticles: 500,

5. Config the animation speed.

  image: imageDemo,
  horizontalSpeed: 1,
  verticalSpeed: 1,

Apply Fancy Pixel Particle Animations To Images, Pict2Pix.js Plugin/Github

See Demo And Download

Official Website(evaristocuesta): Click Here

This superior jQuery/javascript plugin is developed by evaristocuesta. For extra advanced usage, please go to the official website.

Related Posts


Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…


Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…


How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…


A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…