Created
September 28, 2018 13:28
-
-
Save westc/7168408942af79f5d539da2a247509ff to your computer and use it in GitHub Desktop.
4 corner CSS3 gradient pattern. Underlying background color is determined by mix the rgb of the gradient colors together.
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
<html> | |
<head> | |
<style> | |
.test { | |
background-image: | |
linear-gradient(315deg, hsl(0, 100%, 50%), rgba(255,255,255,0) 50%), | |
linear-gradient(45deg, hsl(90, 100%, 50%), rgba(255,255,255,0) 50%), | |
linear-gradient(135deg, hsl(180, 100%, 50%), rgba(255,255,255,0) 50%), | |
linear-gradient(225deg, hsl(270, 100%, 50%), rgba(255,255,255,0) 50%); | |
background-color: #808080; | |
display: block; | |
width: 500px; | |
height: 500px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="test"> </div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment