Created
March 17, 2014 04:32
-
-
Save LeaVerou/9594012 to your computer and use it in GitHub Desktop.
Gradient cheatsheet
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
/* Gradient cheatsheet */ | |
background: linear-gradient(45deg, white, black); | |
background: linear-gradient(to right, white 50%, red, black); | |
background: linear-gradient(to bottom right, white 50px, black); | |
background: repeating-linear-gradient(to bottom left, white, black 30px); | |
background: radial-gradient(at top right, white, black); | |
background: radial-gradient(circle at top right, lime 50%, black 0); | |
background: radial-gradient(farthest-corner at center, red 80%, black); | |
background: radial-gradient(farthest-side at center, yellow 80%, black); | |
background: radial-gradient(circle closest-corner at center, yellow 80%, red); | |
background: repeating-radial-gradient(orange, red 40px); | |
height: 100%; |
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
<!-- content to be placed inside <body>…</body> --> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment