Partikle is a zero-dependency library for rendering floating particles.
While I was working on my website update, I've found out that my Partikle library had couple issues, so that I've decided to fix them
Changelog
New version (1.0.13
) of Partikle] library contains:
- TypeScript support 😎
- Proper bundling to ESM, UMD, CJS and IIFE output formats
Breaking changes
In the past, when you've wanted to load Partikle] library in a classic way via <script>
tag you could do it by using following url:
https://unpkg.com/partikle@latest
Which now DOESN'T WORK anymore - for such cases you should point directly to IIFE file, which looks like following:
https://unpkg.com/partikle@latest/dist/index.iife.js
ESM & CommonJS support
Since 1.0.13
, you can use Partikle] in your modern ESM stack if you need:
import { partikle } from 'partikle';
partikle({
nodeId: 'particle-canvas',
particleColor: '#fefefe',
particlesAmount: 400
});
and CommonJS is supported as well:
const { partikle } = require('partikle');
partikle({
nodeId: 'particle-canvas',
particleColor: '#fefefe',
particlesAmount: 400
});
I hope you're gonna enjoy new version of this tiny library - don't forget that you can add your website to package showcase section 😉 🙌
Best,
-- Å‚.