GithubHelp home page GithubHelp logo

ellie-me / fancy-webgl-sparkles Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 13.22 MB

Add Magical Sparkles To Your Website

Home Page: https://fancy-webgl-sparkles.netlify.app/

License: Apache License 2.0

JavaScript 100.00%
webgl sparkles particles ui awesome-webgl javascript html5-canvas frontend pixijs

fancy-webgl-sparkles's Introduction

Add Some Glitter And Sparks To Your Web Project!

Unleash the power of the GPU! Use fancy-webgl-sparkles.js to spice up your website with this awesome webgl effect.

Please check the demo with the documentation to get started.

What is Fancy WebGl Sparkles?

It's a performance first frontend Javascript library powered by pixi.js that allows you to add dynamic glowing sparkles, stars and bokeh to your DOM elements.

Features

  • WebGL rendering
  • Fancy glow and post-process shaders
  • No coding required, just plug and add markup to your html elements
  • Vanilla Javascript (No JQuery)
  • Three type of particles available
    • Bokeh
    • Sparkles
    • Stars
  • Able to simulate tons of particles
  • Fast on mobile
  • Customize your own colours
  • Built in events
  • Able to render sparkles outside of elements with custom boundaries
  • Sizing options and multipliers

Installation

Npm

npm i fancy-webgl-sparkles
import FancyWebGLSparkles from "fancy-webgl-sparkles"

Web

Download fancy-webgl-sparkles.js from the dist directory and add before the closing body tag

<script src="./your-path/fancy-webgl-sparkles.js"></script>

Usage

FancyWebGLSparkles.init(document.querySelector("your-selector"), {
      persistent: true,
      renderOutside: false,
      sparkleScale: 250,
      renderBokeh: true,
      bokehSize: 0.4,
      sparkleColor: "rainbow"
    });

Please refer to the documentation for advanced configuration and interactive examples.

Contribute

If you wish to contribute feel free to just send a pull request, whether you find a bug or have a feature request feel free to get in touch.

fancy-webgl-sparkles's People

Contributors

dependabot[bot] avatar ellie-me avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ipotion

fancy-webgl-sparkles's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.