cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

              <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=Shrikhand');
/* font-family: 'Shrikhand', cursive; */

/* nav */
#dot {position: fixed; right: 20px; top: 50%; transform: translateY(-50%);}
#dot li {position: relative; width: 16px; height: 16px; margin: 8px;}
#dot li a {
	position: absolute; top: 0; left: 0;
	width: 100%; height: 100%;
  outline: none;
  border-radius: 50%;
  background-color: #fff;
  background-color: rgba(255, 255, 255, 0.3);
  text-indent: -999em;
  cursor: pointer;
	border: 2px solid #fff;
	transition: border-color 0.3s ease;}
#dot li a:after {
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 1px #fff;
    opacity: 0;
    -webkit-transform: scale(3);
    transform: scale(3);
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease, visibility 0s 0.3s;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;

#dot li.active a {}
#dot li.active a:after {
	visibility: visible;
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.3s ease, transform 0.3s ease;

/* container */
.container {}

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

/* section */
#section1 {background-image: linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);}
#section2 {background-image: linear-gradient(to right, #243949 0%, #517fa4 100%);}
#section3 {background: linear-gradient(to bottom, #323232 0%, #3F3F3F 40%, #1C1C1C 150%), linear-gradient(to top, rgba(255,255,255,0.40) 0%, rgba(0,0,0,0.25) 200%);
 background-blend-mode: multiply;}
#section4 {background-image: linear-gradient(to right, #d7d2cc 0%, #304352 100%);}
#section5 {background-image: linear-gradient(-225deg, #FF3CAC 0%, #562B7C 52%, #2B86C5 100%);}
#section6 {background-image: linear-gradient(-225deg, #3D4E81 0%, #5753C9 48%, #6E7FF3 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 ..................