Code Monkey home page Code Monkey logo

dom-confetti's People

Contributors

alexbassy avatar alexeybondarenko avatar ctrl-alt-d avatar daniel-lundin avatar danysirota avatar marijnh avatar ollelauribostrom avatar scailbc avatar vschlattinger avatar whaodude 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

dom-confetti's Issues

Add config parameter for particle fade out

A parameter that controls how fast the particles will fade out once launched.

Currently, you can only control the decay of the explosion movement, not the visibility.

Great project btw!

Confetti Impacts Scrollbar / Window Height + Width

When using the demo for this library, activating the confetti effect with default settings causes the window size to change due to confetti elements only being de-rendered when the time of the animation is complete, which in turn causes a new scrollbar to be added for the width of the window, and changes the height scrollbar as well (as the height increases).

As a developer I want the ability to prevent this from happening so that users of the application I am working on are not negatively impacted.

Wrong typings in index.d.ts

interface ConfettiConfig {
angle?: number;
spread?: number;
width?: number; *** string
height?: number; *** string
duration?: number; *** Currently missing completely
startVelocity?: number;
elementCount?: number;
decay?: number;
colors?: string[];
random?: () => number;
}

blazor-dom-confetti

Hi Daniel,

Just to let you know that I wrapped your project inside a Blazor component. The repo is here:

https://github.com/ctrl-alt-d/blazor-dom-confetti

At first, I tried to rewrite it as c# without javascript, but I guess is a better idea to wrap the javascript code into a Bazor component. The repo contains both projects, the wrapper and the native Blazor.

I will try to keep it up to date. Thanks and congrats about the quality code. dom-confetti is a great project.

Regards,
dani herrera.

Use CSS transitions

Updating the CSS values using JS can lead to decreased performance and performance issues with many elements.

Support direct embed into HTML

I noticed that this library is set up to support a commonJS interface (like Node and Webpack). It would be great if it also supported being direct embedded into HTML. Currently, attempting that results in errors like: Uncaught ReferenceError: exports is not defined

We could use something like returnExports from UMD which lets a module work with Node (CommonJS), AMD (e.g. RequireJS) and browser globals. Or we could simplify it by not supporting AMD.

Love this library and how simple it is!

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.