{"id":13425669,"url":"https://github.com/peachananr/flat-shadow","last_synced_at":"2025-03-15T20:31:05.097Z","repository":{"id":9847372,"uuid":"11840404","full_name":"peachananr/flat-shadow","owner":"peachananr","description":"A small jQuery plugin that will automatically cast a shadow creating depth for your flat UI elements ","archived":false,"fork":false,"pushed_at":"2020-05-08T01:23:42.000Z","size":18,"stargazers_count":483,"open_issues_count":1,"forks_count":103,"subscribers_count":39,"default_branch":"master","last_synced_at":"2024-10-28T04:23:29.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://peachananr.github.io/flat-shadow/demo.html","language":"HTML","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/peachananr.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":"2013-08-02T09:58:35.000Z","updated_at":"2024-01-04T05:22:36.000Z","dependencies_parsed_at":"2022-09-06T13:11:01.762Z","dependency_job_id":null,"html_url":"https://github.com/peachananr/flat-shadow","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachananr%2Fflat-shadow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachananr%2Fflat-shadow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachananr%2Fflat-shadow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachananr%2Fflat-shadow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peachananr","download_url":"https://codeload.github.com/peachananr/flat-shadow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790950,"owners_count":20348378,"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-07-31T00:01:16.426Z","updated_at":"2025-03-15T20:31:04.680Z","avatar_url":"https://github.com/peachananr.png","language":"HTML","readme":"#Flat Shadow by Pete R.\nA small jQuery plugin that will automatically cast a shadow creating depth for your flat UI elements \nCreated by [Pete R.](http://www.thepetedesign.com), Founder of [BucketListly](http://www.bucketlistly.com)\n\nLicense: [Attribution-ShareAlike 4.0 International](http://creativecommons.org/licenses/by-sa/4.0/deed.en_US)\n\n\n## Demo\n[View demo](http://peachananr.github.io/flat-shadow/demo.html)\n\n## Usage\nTo use this on your website, simply include the latest jQuery library found here together with `jquery.flatshadow.js` into your document's `\u003chead\u003e`, follow by the html markup and a function call as follows:\n  \n````html\n\u003cdiv class=\"flat-icon\"\u003e FLAT \u003c/div\u003e\n\u003cdiv class=\"flat-icon\"\u003e UI \u003c/div\u003e\n...\n````\n\n````javascript\n$(\".flat-icon\").flatshadow({\n  color: \"#2ecc71\", // Background color of elements inside. (Color will be random if left unassigned)\n  angle: \"SE\", // Shadows direction. Available options: N, NE, E, SE, S, SW, W and NW. (Angle will be random if left unassigned)\n  fade: true, // Gradient shadow effect\n  boxShadow: \"#d7cfb9\" // Color of the Container's shadow\n});\n````\n\n## Further Customization\nWith `jquery.flatshadow.js`, you can apply each individual elements with different effect by simply add a `data-color` and `data-angle` to your mark up as follows:\n\n````html\n\u003cdiv data-color=\"#2ecc71\" data-angle=\"NE\" class=\"flat-icon\"\u003e FLAT \u003c/div\u003e\n\u003cdiv data-color=\"#1ABC9C\" data-angle=\"NW\" class=\"flat-icon\"\u003e UI \u003c/div\u003e\n````\nand remove the color and angle global options as seen here:\n\n````javascript\n$(\".flat-icon\").flatshadow({\n  fade: true,\n  boxShadow: \"#d7cfb9\"\n});\n````\n\nNow, each individual element will have its own effect without you calling the function multiple times.\n\n## Other Resources\n- [Tutorial](http://www.onextrapixel.com/2013/08/09/add-depth-to-flat-ui-with-flat-shadow-js/)\n","funding_links":[],"categories":["HTML","31. 文本处理 ##","31. 文本处理"],"sub_categories":["13.20 视差滚动(Parallax Scrolling) ###","24.3 Web Sockets"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachananr%2Fflat-shadow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeachananr%2Fflat-shadow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachananr%2Fflat-shadow/lists"}