New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bgoverlay

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bgoverlay

A small package that helps you to add a overlay on a background

  • 1.0.5
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

🖼 Background Overlay

A small package that helps you to add a overlay on a background

🚀 How to use

Open the terminal and write

npm i bgoverlay

For HTML, add the following link tag in the head section of your HTML.

<link rel="stylesheet" href="./node_modules/bgoverlay/bgoverlay.css">

For React, add the following line of code at the top of the file.

import "./node_modules/bgoverlay/bgoverlay.css"

Create 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.

<div class="main_div">
    <div class="overlay"></div>
</div>

Add any background image and overlay color you want then by writing the following code in the CSS.

.main_div {
	background-image: url() !important; /* Add image URL */
}

.overlay {
	background-color: black; /* Add any color */
}

🙋‍♂️ Author

Visit my Website

Want to connect with me, follow me on Twitter

Keywords

FAQs

Package last updated on 02 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc