Skip to content

Instantly share code, notes, and snippets.

@vlandham
Last active August 29, 2015 14:17
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 vlandham/8354a21c83540b692e02 to your computer and use it in GitHub Desktop.
Save vlandham/8354a21c83540b692e02 to your computer and use it in GitHub Desktop.
scroll_demo_snippets
#sections {
position: relative;
display: inline-block;
width: 250px;
top: 0px;
z-index: 90;
}
.step {
margin-bottom: 200px;
}
#vis {
display: inline-block;
position: fixed;
top: 60px;
z-index: 1;
margin-left: 0;
height: 600px;
width: 600px;
background-color: #ddd;
}
<div id='graphic'>
<div id='sections'>
<section class="step">
<div class="title">OpenVis Conf 2013</div>
I did what no presenter should ever do: I watched my own talk...
</section>
<section class="step">
<!-- another section -->
</section>
</div>
<div id='vis'>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment