Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                	<div class="more">
		<nav class="menu">
				<li id="blue" >Blue Point</li>
				<li id="black" >Black Point</li>
				<li id="green" >Green Point</li>
				<li id="yellow" >Yellow Point</li>

<div id="circle" class="header">
  <div class="space"></div>   <!--  !!!  just some space to scroll with a special easing -->
  <h2 class="circle01">BLUE CIRCLE</h2>
  <h2 class="circle02">BLACK CIRCLE</h2>
  <h2 class="circle03">GREEN CIRCLE</h2>
  <h2 class="circle04">YELLOW CIRCLE</h2>
  <div class="space"></div>     <!--  !!!  just some space to scroll -->

<div id="rect" class="header">
   <!-- <div class="space"></div>   !!!  just some space to scroll with a special easing -->
  <div class="inner">
    <h2 class="rect01">BLUE RECT</h2>
    <h2 class="rect02">BLACK RECT</h2>
    <h2 class="rect03">GREEN RECT</h2>
    <h2 class="rect04">YELLOW RECT</h2>
  <!--<div class="space"></div>     <!--  !!!  just some space to scroll -->

<div id="AllContent">
  <p id="content01" class="content">BLUE BLUE BLUE BLUE BLUE BLUE </p>
  <p id="content02" class="content">BLACK BLACK BLACK BLACK BLACK</p>
  <p id="content03" class="content">GREEN GREEN GREEN GREEN GREEN </p>
  <p id="content04" class="content">YELLOW YELLOW YELLOW YELLOW YELLOW</p>


                .more {
  position: relative;
  width: 135px;
  height: 200px;
  margin: 20px 0 0 20px;
  cursor: pointer;

.more h2 {
  font-size: 20px;
  margin: 0;

.menu {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 10px;
  visibility: hidden;

ul {
  padding: 0;
  margin: 0;

.menu li {
  display: block;
  padding: 6px 30px 6px 0px;
  font-size: 18px;
  font-weight: 300;

.menu li:hover {
  color: red;

#circle{margin-bottom: 20px;}

.header {
  position: relative;
  text-align: center;
  margin-left: 20px;
  width: 220px;
  height: 45px;
  overflow: hidden;
  border: 1px solid red;

.header h2 {
  height: 40px;
  margin: 10px 0 10px 0;   /* corresponding with 'offsetY' in the tween */
.space {
  height: 100px;

#AllContent p{
  position: absolute;
  width: 220px;
  margin-left: 20px;

  margin-top: 95px;


                //=========== Menu =================================
	var menu = new TimelineMax({paused:true});".menu", 0.3, {height: 'inherit', autoAlpha: 1}, 0 )

	$('.more h2').mouseenter(function(){;

//  see:

TweenLite.set("#circle", {scrollTo:{y:".circle01", offsetY:10}}); // set to the first section if wannted
//TweenLite.set("#rect .inner", {scrollTo:{y:".rect01", offsetY:10}}); // set to the first section if wannted
TweenLite.set("#content01", {autoAlpha:1}); // set to the first content if wannted

TweenLite.set("#rect", {rotation:90, transformOrigin:"50% 50%"}); // xxxxxxxxxxxx

$(".menu li").each(function(index, element){
    $(this).click(function(){"#circle", 1.5, {scrollTo:{y:".circle0" + (index+1), offsetY:10}, ease: Elastic.easeOut.config(1, 0.5)});
   "#rect .inner", 0, {y:"0px"}); // first set to 0"#rect .inner", 1.5, {y:"-50" * (index) + "px", ease: Elastic.easeOut.config(1, 0.5)}); // than to the related position
   ".content", 0, {autoAlpha:0});  // all fading out"#content0" + (index+1), 1, {autoAlpha:1 });  // only the clicked fade in