{"id":19817800,"url":"https://github.com/msaaddev/bgoverlay","last_synced_at":"2026-03-14T20:42:23.928Z","repository":{"id":57153444,"uuid":"237636919","full_name":"msaaddev/BgOverlay","owner":"msaaddev","description":"A NPM package to add overlay on a background image","archived":false,"fork":false,"pushed_at":"2020-09-22T08:17:21.000Z","size":2216,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-06T01:08:17.144Z","etag":null,"topics":["css","npm","npm-package","overlay"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/bgoverlay","language":"CSS","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/msaaddev.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}},"created_at":"2020-02-01T15:44:08.000Z","updated_at":"2021-06-19T17:46:13.000Z","dependencies_parsed_at":"2022-09-06T16:11:58.895Z","dependency_job_id":null,"html_url":"https://github.com/msaaddev/BgOverlay","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msaaddev%2FBgOverlay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msaaddev%2FBgOverlay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msaaddev%2FBgOverlay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msaaddev%2FBgOverlay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msaaddev","download_url":"https://codeload.github.com/msaaddev/BgOverlay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224253335,"owners_count":17280934,"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":["css","npm","npm-package","overlay"],"created_at":"2024-11-12T10:13:48.249Z","updated_at":"2026-03-14T20:42:23.882Z","avatar_url":"https://github.com/msaaddev.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖼 Background Overlay\n\nA small package that helps you to add a overlay on a background\n\n## 🚀 How to use\n\nOpen the terminal and write\n\n`npm i bgoverlay`\n\nFor HTML, add the following link tag in the head section of your HTML.\n\n`\u003clink rel=\"stylesheet\" href=\"./node_modules/bgoverlay/bgoverlay.css\"\u003e`\n\nFor React, add the following line of code at the top of the file.\n\n`import \"./node_modules/bgoverlay/bgoverlay.css\"`\n\nCreate two parent child divs in the body tag. Give class of *main_div* to the parent div and *overlay* to the child div like this.\n\n```\n\u003cdiv class=\"main_div\"\u003e\n    \u003cdiv class=\"overlay\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\nAdd any background image and overlay color you want then by writing the following code in the CSS.\n\n```\n.main_div {\n\tbackground-image: url() !important; /* Add image URL */\n}\n\n.overlay {\n\tbackground-color: black; /* Add any color */\n}\n```\n\n## 🙋‍♂️ Author\n\nVisit my [Website](https://msaad.dev)\n\nWant to connect with me, follow me on [Twitter](https://twitter.com/msaaddev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsaaddev%2Fbgoverlay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsaaddev%2Fbgoverlay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsaaddev%2Fbgoverlay/lists"}