GithubHelp home page GithubHelp logo

tipsy / bubbly-bg Goto Github PK

View Code? Open in Web Editor NEW
1.6K 1.6K 99.0 2.79 MB

Beautiful bubbly backgrounds in less than 1kB (750 bytes gzipped)

License: Apache License 2.0

JavaScript 100.00%
animated-backgrounds canvas javascript

bubbly-bg's People

Contributors

abalazsik avatar graingert avatar kostasx avatar nicole-git avatar swatto avatar tipsy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bubbly-bg's Issues

SVG images instead of bubbles

Hi,

bubbly-bg is a great repo.

It would be great to add a new feature as instead of bubbles to load SVG images, what do you think?

Borders

Can I set a border on the bubbles. I want something a little more like a biological cell.
Wonderful work by the way.

How to disable or Remove Bubbly ?

Hi,

I use this library with the spa and just want to show it on the login page.
I want to delete the canvas after the user has logged in.
Is there a method for that?

Gradient config

@abalazsik, I'm looking at the gradient config. We also don't support more than 2 color stops, but it would be simple enough to add any number, this could potentially replace "gradientLength".

specify canvas doesn't work

Hi there,

I created a canvas and use the option :
canvas: document.querySelector("#mycan"),

But it still uses the whole html body to draw bubbles.

please help

How to use in vue?

Hello, very nice a plugin, could you tell me how to use this plugin in vue? or show me some example? Thank you very much! I tried some ways,but it doesn't work.

this is my code, I use nuxt.js

nuxt.config.js
plugins: [ { src: '@/plugins/bubbly-bg', ssr: false } ],

bubbly-bg.js
Vue.use('BubblyBg', BubblyBg)
login.vue
created() { if (process.client) { this.bubbly() } }

How to use with Reactjs

Tried to
npm i --save bubbly-bg

then in my App.js

import bubbly from "bubbly-bg";

bubbly();

shows

Cannot find bubbly

Canvas option error on Reactjs

image

  componentDidMount() {
    window.bubbly({
      colorStart: "#fff4e6",
      colorStop: "#ffe9e4",
      blur: 1,
      compose: "source-over",
      bubbleFunc: () => `hsla(${Math.random() * 50}, 100%, 50%, .3)`,
      canvas: document.getElementById("background") // error this line
    });
  }

I've tried to use your lib like this, it work fine until I added option canvase and then it throw an error.

Any help ? thanks :)

Make example more resource friendly

The example currently runs 4 instances of bubbly on top of each other, tricking people into thinking bubbly uses a lot more resources than it does.

bubble max_size

Hello
Really got work!

Is it possible to set the maximum bubble size?
i will use the background on my tablet and the bubble looks really great.

Thank you
Best regards
Jumbo125

not working with bulma css

When I'm configuring in combination with Bulma CSS, this is not working at all. Is there any possibility to get compatibility with it?

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.