loktar00 / loktar00/JQuery-Snowfall

Different opacity on each flake

Open
#26 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
JavaScript
Stars
715
Forks
218
PR merge metrics
No merged PRs in 30d

Description

Hi I needed a effect of different opacity on each flake and i made it, but will be useful if you add it as an options in the plugin:
`{ minOpacity: 0.2, maxOpacity:1 }`

I do it with css:

```
.snowfall-flakes:nth-child(even) { opacity:0.5; }
.snowfall-flakes:nth-child(3n) { opacity:0.8; }
.snowfall-flakes:nth-child(4n) { opacity:0.2; }
.snowfall-flakes:nth-child(10n) { opacity:0.1; }
```

Thank you for developing this plugin.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the plugin's option handling and the entry point where snowfall flakes are created. Use the requested minOpacity and maxOpacity values to define per-flake opacity, and verify that the plugin accepts the options and produces opacity within that range.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.