{"id":16441799,"url":"https://github.com/ubaldop/vue-niege","last_synced_at":"2025-10-16T18:25:14.636Z","repository":{"id":57158075,"uuid":"158951807","full_name":"ubaldop/vue-niege","owner":"ubaldop","description":"Vue component to add a snowfall on your page","archived":false,"fork":false,"pushed_at":"2018-12-12T18:22:27.000Z","size":865,"stargazers_count":31,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-05T01:35:54.555Z","etag":null,"topics":["canvas","component","single-file","snow","snowfall","vuejs","vuejs-components"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubaldop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-24T16:00:28.000Z","updated_at":"2023-12-01T01:13:36.000Z","dependencies_parsed_at":"2022-08-24T08:10:28.134Z","dependency_job_id":null,"html_url":"https://github.com/ubaldop/vue-niege","commit_stats":null,"previous_names":["p3trur0/vue-niege"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ubaldop/vue-niege","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-niege","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-niege/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-niege/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-niege/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubaldop","download_url":"https://codeload.github.com/ubaldop/vue-niege/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldop%2Fvue-niege/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013123,"owners_count":26085232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["canvas","component","single-file","snow","snowfall","vuejs","vuejs-components"],"created_at":"2024-10-11T09:15:26.106Z","updated_at":"2025-10-16T18:25:14.605Z","avatar_url":"https://github.com/ubaldop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-niege\n\n_Let it snow on your Vue applications!_\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/P3trur0/vue-niege/blob/master/static/logo.png?raw=true\" alt=\"Vue Niege\"/\u003e\n\u003c/p\u003e\n\n---\n\nSingle File Vue Component for _lazy_ snow storms generation. Come on, let's make your Vue applications joyful for Christmas time! 🎄 🎅\n\n### Installation\n\nYou can install this component using npm:\n\n```bash\nnpm install --save vue-niege\n```\n\n### Usage\n\nOnce installed, it is easy to use it. \n\n##### Importing the component\n\nFirst, you need to import `vue-niege` in your files. You can do that in different ways.  \nFor example, it can be imported into a build process for use in full-fledged Vue applications:\n\n```js\nimport Snow from 'vue-niege';\n\nexport default {\n  components: {\n    Snow,\n  },\n  // rest of the component\n}\n```\n\nAlternatively, you can import `vue-niege` via `\u003cscript\u003e` tag in the browser directly:\n\n```html\n\u003cscript src=\"https://unpkg.com/vue\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/vue-niege\"\u003e\u003c/script\u003e\n```\n\n##### Using the component\n\nOnce imported, you can use your component as follows:\n\n```js\n\u003cSnow/\u003e\n```\n\nThis is the minimal setup to add a snowing canvas in your application.\n\n### Properties\n\nIf you need to customize the snow behavior, you can use one of the following optional properties.\n\n| **Properties** | **Default** | **Description**                                                                        | **Type**         |\n|----------------|-------------|----------------------------------------------------------------------------------------|------------------|\n| **active**         | `true`        | _provides dynamic display to the canvas: it is displayed only where this prop is true_ | Boolean          |\n| **color**          | `#FFFFFF`     | _given a master HEX color, it defines a color pattern of four values for the snow. This property must be in expressed as HEX color (e.g.: `#050484`)_                                        | String           |\n| **zIndex**         | `1`           | _defines the z-index position of the canvas in the DOM._                                                | Number           |\n| **swing**          | `0`           | _applies a swing effect to each snowflake. By default no swinging is applied._         | Number           |\n| **wind**           | `1`           | _defines the horizontal wind effect. The effect blows from right for values greater than 0, from left for values less than 0._ | Number           |\n| **speed**          | `m`           | _defines the speed of the falling snow. The available values are `h` for high speed, `m` for medium speed, `l` for low speed._        | String           |\n\nFor example, the following:\n\n```js\n \u003cSnow \n :active='true'  //e.g.: add a condition to display the canvas only if current date is in the Advent range.\n zIndex=\"2\"\n :wind='1' \n :swing='3' \n speed=\"h\" \n color=\"#ffff00\"/\u003e\n```\n\nproduces the following effect:\n\n![Vue de toits](https://github.com/P3trur0/vue-niege/blob/master/static/vue-niege.gif?raw=true \"Vue de toits\")\n\n### Contributing\n\nThis component can be improved both in features and performances. Please, help me in doing it better 🎅\n\n### Credits\n\nThe inspiration for the component comes from [this](https://github.com/HermannBjorgvin/SnowJs) and [this](https://github.com/Fuxy526/vue-snowf), so their authors deserve big kudos.  \nThe inspiration for the component name comes from the above impressionist painting by [Gustave Caillebotte](https://en.wikipedia.org/wiki/Gustave_Caillebotte), titled **Vue de toits (Effet de neige)**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubaldop%2Fvue-niege","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubaldop%2Fvue-niege","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubaldop%2Fvue-niege/lists"}