A Pen by Severin Klaus on CodePen.
Created
February 16, 2015 09:01
-
-
Save betabong/e35bb15c20a1160985d4 to your computer and use it in GitHub Desktop.
YPeRBJ
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
<div id="height">Height</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
setInterval(function(){ | |
var h = $(window).height(); | |
$('#height').text(h).height(h).css({ | |
top: $(document).scrollTop() | |
}); | |
},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
body { | |
font: caption; | |
font-size: 300%; | |
padding: 0; margin: 0; | |
height: 8000px; | |
} | |
#height { | |
position: relative; | |
background-color: #cceedd; | |
background-image: -webkit-radial-gradient(center center, ellipse farthest-side,rgb(254, 254, 254) 31.4%,rgb(83, 91, 94) 32.1%,rgb(253, 253, 253) 98.9%,rgb(83, 91, 94) 100%); | |
/* IE10+ */ | |
background-image: radial-gradient(ellipse farthest-side at center center,rgb(254, 254, 254) 31.4%,rgb(83, 91, 94) 32.1%,rgb(253, 253, 253) 98.9%,rgb(83, 91, 94) 100%); | |
background-image: -ms-radial-gradient(center center, ellipse farthest-side,rgb(254, 254, 254) 31.4%,rgb(83, 91, 94) 32.1%,rgb(253, 253, 253) 98.9%,rgb(83, 91, 94) 100%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment