Skip to content

Instantly share code, notes, and snippets.

@rummik
Created April 12, 2014 23:34
Show Gist options
  • Save rummik/10562127 to your computer and use it in GitHub Desktop.
Save rummik/10562127 to your computer and use it in GitHub Desktop.
Scrolly Zen Thing
/**
* Scrolly Zen Thing
*/
.test {
height: 500px;
width: 200px;
background: -webkit-linear-gradient(top, #fafafa, transparent 200px),
-webkit-linear-gradient(bottom, #fafafa, transparent 200px),
-webkit-radial-gradient(top, rgba(0, 0, 0, .3), transparent 70%),
-webkit-radial-gradient(bottom, rgba(0, 0, 0, .3), transparent 70%),
#fafafa;
background-size: 100%, 100%, 100% 5px, 100% 5px;
background-position: top, bottom, top, bottom;
background-attachment: local, local, scroll, scroll;
background-repeat: no-repeat;
overflow: auto;
}
.test div {
height: 5000px;
}
<div class="test"><div></div></div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"70","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment