{"id":15602333,"url":"https://github.com/fiveisprime/css-snow","last_synced_at":"2025-04-24T07:23:44.437Z","repository":{"id":4909091,"uuid":"6065319","full_name":"fiveisprime/css-snow","owner":"fiveisprime","description":"CSS keyframes animations to make some snow on a web page. Includes some JavaScript to add snow to the page on load.","archived":false,"fork":false,"pushed_at":"2012-12-26T03:11:49.000Z","size":120,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T08:07:36.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://fiveisprime.github.com/css-snow/","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/fiveisprime.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":"2012-10-03T19:18:18.000Z","updated_at":"2023-04-02T14:44:58.000Z","dependencies_parsed_at":"2022-07-13T21:34:04.257Z","dependency_job_id":null,"html_url":"https://github.com/fiveisprime/css-snow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiveisprime%2Fcss-snow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiveisprime%2Fcss-snow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiveisprime%2Fcss-snow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiveisprime%2Fcss-snow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fiveisprime","download_url":"https://codeload.github.com/fiveisprime/css-snow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250581198,"owners_count":21453617,"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-03T02:41:10.844Z","updated_at":"2025-04-24T07:23:44.419Z","avatar_url":"https://github.com/fiveisprime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS Snow\n\nUses CSS3 keyframes animations to create a snow effect - the JavaScript library adds snow elements and updates the\nkeyframes animation to use the full page.\n\nInspired by [Dave Olsen](https://github.com/dmolsen/CSS3-Snowflakes) and [Elizabeth Yalkut](https://github.com/elizabethyalkut/CSS3-Snowflakes). I basically took what Dave had and cleaned up the CSS and JavaScript so that I could use it for a project and I figured I would share.\n\n## Getting Started\n\nThe CSS is what makes the snow work and the JavaScript is supplemental so you might need to add some specific IDs if you want to use the included `snow.css` stylesheet.\n\nInclude the references:\n\n````html\n\u003clink href=\"src/css/base.css\" rel=\"stylesheet\" media=\"screen\" /\u003e\n\u003clink href=\"src/css/snow.css\" rel=\"stylesheet\" media=\"screen\" /\u003e\n\u003cscript src=\"src/js/snow.js\"\u003e\u003c/script\u003e\n````\n\nMake sure that you have a container with an ID that can be used as the page container. This is where\nthe snow will be populated and how the keyframes animation determines height.\n\nAdd a `div` for the snow:\n\n````html\n\u003cdiv id=\"container\"\u003e\n  \u003cdiv id=\"snow-container\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n````\n\nAdd the desired amount of snow using JavaScript (note that keyframes animations are pretty CPU intensive and might make you sad).\n\n````javascript\nsnow.addSnow('container','snow-container', 40);\n````\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiveisprime%2Fcss-snow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiveisprime%2Fcss-snow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiveisprime%2Fcss-snow/lists"}