Last active
May 8, 2021 16:52
-
-
Save mattorp/a69a6ae486bc76819f1e6f0ed053c607 to your computer and use it in GitHub Desktop.
gradient html overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head?> | |
<title>Gradient Overlay</title> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
.gradient { | |
height: 100vh; | |
width: 100vw; | |
background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, 0) 51%); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="gradient"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment