{"id":15533971,"url":"https://github.com/zachleat/snow-fall","last_synced_at":"2025-04-04T05:09:10.380Z","repository":{"id":212672645,"uuid":"732044926","full_name":"zachleat/snow-fall","owner":"zachleat","description":"A web component to add snow to your web site (or to an element on your web site).","archived":false,"fork":false,"pushed_at":"2024-12-17T21:52:33.000Z","size":16,"stargazers_count":133,"open_issues_count":3,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-28T04:14:02.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zachleat.github.io/snow-fall/demo.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachleat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-15T13:59:41.000Z","updated_at":"2025-03-22T10:16:58.000Z","dependencies_parsed_at":"2024-10-02T11:40:41.011Z","dependency_job_id":"da419c9c-7838-4c7b-9dd1-83d02fb1d6de","html_url":"https://github.com/zachleat/snow-fall","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"204f8b65404616dd0e3227d58dd3c35b235702d8"},"previous_names":["zachleat/snow-fall"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fsnow-fall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fsnow-fall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fsnow-fall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fsnow-fall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachleat","download_url":"https://codeload.github.com/zachleat/snow-fall/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246811244,"owners_count":20837745,"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","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":[],"created_at":"2024-10-02T11:40:33.691Z","updated_at":"2025-04-04T05:09:10.358Z","avatar_url":"https://github.com/zachleat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003csnow-fall\u003e`\n\nA web component to add snow to your web site (or to an element on your web site). Based off of [this Codepen](https://codepen.io/alphardex/pen/dyPorwJ) from [`alphardex`](https://codepen.io/alphardex).\n\n* [Demo](https://zachleat.github.io/snow-fall/demo.html)\n* [Related blog post](https://www.zachleat.com/web/snow-fall/)\n\n## Usage\n\n```html\n\u003cscript type=\"module\" src=\"snow-fall.js\"\u003e\u003c/script\u003e\n\n\u003c!-- Add snow to the page --\u003e\n\u003csnow-fall\u003e\u003c/snow-fall\u003e\n\n\u003c!-- Add snow to the first child element --\u003e\n\u003csnow-fall\u003e\n\t\u003cdiv style=\"width: 300px; height: 300px\"\u003e\n\u003c/snow-fall\u003e\n```\n\nInstallable from npm:\n\n```\nnpm install @zachleat/snow-fall\n```\n\n### Use text content instead\n\n_Added in v1.0.3_\n\n```html\n\u003csnow-fall text=\"❄️\"\u003e\u003c/snow-fall\u003e\n\u003c!-- works with --snow-fall-size too --\u003e\n```\n\n\n### Use with `\u003cis-land\u003e`\n\nThis is best used with [`\u003cis-land\u003e`](https://www.zachleat.com/web/is-land/) to respect user preferences for reduced motion:\n\n```html\n\u003cis-land on:media=\"(prefers-reduced-motion: no-preference)\"\u003e\n\t\u003csnow-fall\u003e\u003c/snow-fall\u003e\n\u003c/is-land\u003e\n```\n\n### Change the snow color\n\n```html\n\u003c!-- Change snow color --\u003e\n\u003csnow-fall style=\"--snow-fall-color: rebeccapurple\"\u003e\u003c/snow-fall\u003e\n```\n\n### Change the number of snowflakes\n\n```html\n\u003c!-- Default: 100 --\u003e\n\u003csnow-fall count=\"200\"\u003e\u003c/snow-fall\u003e\n```\n\n### Change the size of the snowflakes\n\n_Added in v1.0.2_\n\n```html\n\u003c!-- Default: 10px --\u003e\n\u003csnow-fall style=\"--snow-fall-size: 20px\"\u003e\u003c/snow-fall\u003e\n```\n\n\n### Force the rendering mode (page/element)\n\n_You probably don’t need this._\n\n```html\n\u003csnow-fall mode=\"page\"\u003e\u003c/snow-fall\u003e\n\u003csnow-fall mode=\"element\"\u003e\u003c/snow-fall\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachleat%2Fsnow-fall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachleat%2Fsnow-fall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachleat%2Fsnow-fall/lists"}