Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Last active April 24, 2024 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeaVerou/fb8ca6783e1ba23e6f8ce1934b7f261f to your computer and use it in GitHub Desktop.
Save LeaVerou/fb8ca6783e1ba23e6f8ce1934b7f261f to your computer and use it in GitHub Desktop.
Polar interpolation discontinuity
/**
* Polar interpolation discontinuity
*/
div:nth-of-type(1) {
background: linear-gradient(to right in oklch, oklch(70% 0.1 0), oklch(70% 0.1 180));
}
div:nth-of-type(2) {
background: linear-gradient(to right in oklch, oklch(70% 0.1 0), oklch(70% 0.1 179));
}
div:nth-of-type(3) {
background: linear-gradient(to right in oklch, oklch(70% 0.1 1), oklch(70% 0.1 180));
}
/* Demo styling */
div {
padding: 1em;
flex: 1;
}
body {
padding: 2em;
display: flex;
flex-flow: column;
gap: 1em;
height: 100vh;
}
* {
margin: 0;
box-sizing: border-box;
}
<p>0 to 180:
<div></div>
<p>0 to 179:
<div></div>
<p>1 to 180:
<div></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment