Random SVG Background Generator using RBGen JS Library

Trigvi February 04, 2023

ADN
random-svg-background-generator-using-rbgen-js-library

Live Preview Download

RBGen JS is a tiny JavaScript library that can generate random SVG background images for any container elements.

How to use it:

1. Download and import the rbgen.js library.

2. Add the CSS class ‘rbgen’ to the target container element.

....

3. Initialize the rbgen.js and apply the SVG background image to the container.


let rbgen = new Rbgen();
rbgen.apply();

4. Config the SVG background image with the following HTMLdataattributes:


Next: Unleashing the Power of AI: Adding a ChatGPT Chatbot to Your Website

also view other related posts,