How To Create Linear Gradient Shadow Using Html and CSS.

Start creating our Linear Gradient Shadow Using HTML and CSS

Table of Contents

index.html

				
					<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Linear Gradient in html</title>
    <link rel="stylesheet" href="./style.css">
</head>
<body>
    <div class="container"></div>
</body>
</html>
				
			

style.css

				
					.container {
  position: relative;
  width: 512px;
  height: 512px;
  background: linear-gradient(#111143, #1cb5e0);
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(#111143, #1cb5e0);
  transform: translateY(40px) scale(0.9);
  z-index: -1;
  filter: blur(25px);
  opacity: 0.9;
}

				
			

Inspired form the post by richwebdeveloper.

Leave a Reply

Your email address will not be published. Required fields are marked *