css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <nav id="dot">
		<li class="active"><a href="#c"><em>Intro</em></a></li>
		<li><a href="#c"><em>Skill</em></a></li>
		<li><a href="#c"><em>Website</em></a></li>
		<li><a href="#c"><em>Work</em></a></li>
		<li><a href="#c"><em>About</em></a></li>
		<li><a href="#c"><em>Contact</em></a></li>

<section id="contents">
	<div id="section1">
		<div class="container">
			<div class="sec1">
				<h2>Think Different</h2>
	<div id="section2">
		<div class="container">
			<div class="sec2">
				<h2>Way to Go</h2>
	<div id="section3">
		<div class="container">
			<div class="sec3">
				<h2>Have a Dream</h2>
	<div id="section4">
		<div class="container">
			<div class="sec4">
				<h2>Ti Amo</h2>
	<div id="section5">
		<div class="container">
			<div class="sec5">
				<h2>Que Sera Sera</h2>
	<div id="section6">
		<div class="container">
			<div class="sec6">
				<h2>Spero Spera</h2>
              @import url('https://fonts.googleapis.com/css?family=Dancing+Script');
/* font-family: 'Dancing Script', cursive; */

/* nav */
#dot {position: fixed; right: 20px; top: 50%; transform: translateY(-50%);}
#dot li {}
#dot li a {position: relative; width: 15px; height: 15px; background-color: rgba(255,255,255,0.5); border-radius: 15px; margin: 8px; display: block;}
#dot li a em {position: absolute; top:-7px; right: 37px; background: rgba(0,0,0,0.55); color: #fff; padding: 8px 14px 8px 14px; display: block; opacity: 0; transition: all 0.3s ease;}
#dot li a em:after {content:''; position: absolute; top: 11px; right: -5px; border-left: 5px solid rgba(0,0,0,0.55);
 border-top: 5px solid transparent;
 border-bottom: 5px solid transparent;}
#dot li.active a {position: relative; background-color: rgba(255,255,255,1);}
#dot li.active a em {opacity: 1; right: 27px;}

/* dot style */
#dot li a {
	background-color: transparent;
	box-shadow: inset 0 0 0 2px white;
	-webkit-transition: background 0.3s ease;
	transition: background 0.3s ease;

#dot li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	height: 0;
	left: 0;
	width: 100%;
	background-color: #fff;
	box-shadow: 0 0 1px #fff;
	-webkit-transition: height 0.3s ease;
	transition: height 0.3s ease;

#dot li a:hover {
	background-color: rgba(255,255,255,0.4);

#dot li.current a::after {
	height: 100%;

/* container */
.container {}

/* contents */
#contents {font-size: 60px; color: #fff; text-align: center; font-family: 'Dancing Script', cursive;}
#contents > div {height: 100vh; line-height: 100vh;}

/* section */
#section1 {background-image: linear-gradient(to right, #3ab5b0 0%, #3d99be 31%, #56317a 100%);}
#section2 {background-image: linear-gradient(to top, #cc208e 0%, #6713d2 100%);}
#section3 {background-image: linear-gradient(to right, #243949 0%, #517fa4 100%);}
#section4 {background-image: linear-gradient(to right, #00dbde 0%, #fc00ff 100%);}
#section5 {background-image: linear-gradient(to top, #3b41c5 0%, #a981bb 49%, #ffc8a9 100%);}
#section6 {background-image: linear-gradient(-225deg, #231557 0%, #44107A 29%, #FF1361 67%, #FFF800 100%);}
              var nav = $("#dot ul li");
var contents = $("#contents > div");

	var target = $(this);
	var index = target.index();
	// alert(index);
	var section = contents.eq(index);
	var offset = section.offset().top;
	// alert(offset);
	$("html,body").animate({scrollTop:offset},600, "easeInOutExpo");

	var wScroll = $(this).scrollTop();
	if(wScroll >= contents.eq(0).offset().top){
	if(wScroll >= contents.eq(1).offset().top){
	if(wScroll >= contents.eq(2).offset().top){
	if(wScroll >= contents.eq(3).offset().top){
	if(wScroll >= contents.eq(4).offset().top){
	if(wScroll >= contents.eq(5).offset().top){
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................