-
-
Save alexeyten/2248197 to your computer and use it in GitHub Desktop.
Candy
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
/** | |
* Candy | |
*/ | |
html { | |
background-color: silver; | |
background-image: linear-gradient(45deg, gray 25%, transparent 25%, transparent 75%, gray 75%, gray), | |
linear-gradient(45deg, gray 26%, transparent 26%, transparent 75%, gray 75%, gray); | |
background-size:20px 20px; | |
background-position:0 0, 10px 10px; | |
min-height: 100%; | |
} | |
div { | |
min-height: 100%; | |
width: 400px; | |
height: 16px; | |
margin: 10em 0 0 20em; | |
background-image: | |
linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.25) 8px, rgba(255,255,255,0) 8px), | |
repeating-linear-gradient(-45deg, rgba(62,94,207,0.7), rgba(62,94,207,0.7) 10px, rgba(0,0,0,0) 10px, rgba(0,0,0,0) 20px, rgba(62,94,207,0.7) 20px), | |
linear-gradient(rgba(96,148,240,0.5),rgba(178,215,251,0.5)); | |
background-size: 28px 28px; | |
transition: background-position 1000s 9999s linear; | |
background-position: 0 0, 0 0, 0 0; | |
background-repeat: repeat-x, repeat, repeat; | |
background-clip: padding-box; | |
border-radius: 100px; | |
border: 1px solid rgba(0,0,0,.2); | |
} | |
div:hover { | |
background-position: 0 0, 0 50000px, 0 0; | |
transition: background-position 1000s 0s linear; | |
} |
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> --> | |
<div></div> |
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":"separate","seethrough":"1","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment