Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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.

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.

HTML

              
                <body>
  <ul class="section">
    <li>
      <h2>scroll</h2>
      <a href="#" class="section-link hover-link">hover me</a>     </li> 
    <li class="background-2nd">
      <a href="#" class="section-link cyan color-cyan hover-link">hover me</a>
    </li> 
    <li>
      <a href="#" class="section-link red hover-link">hover me</a>
    </li> 
    <li class="background-2nd">
      <a href="#" class="section-link blue hover-link">hover me</a>
    </li> 
    <li>
      <a href="#" class="section-link yellow hover-link">hover me</a>
    </li> 
    <li class="background-2nd">
      <a href="#" class="section-link violet hover-link">hover me</a>
    </li> 
    <li>
      <a href="#" class="section-link hover-link">hover me</a>
    </li> 
    <li class="background-2nd">
      <a href="#" class="section-link hover-link">hover me</a>
    </li>  
    <li>
      <a href="#" class="section-link hover-link">hover me</a>
    </li>  
    <li class="background-2nd">
      <a href="#" class="section-link hover-link">hover me</a>
    </li> 
  </ul>

  <div class='cursor' id="cursor"></div>
  <div class='cursor2' id="cursor2"></div>

<!-- Link to page
	================================================== -->

  <a href="https://themeforest.net/user/ig_design/portfolio"      class="link-to-portfolio hover-link" target=”_blank”       ></a>
  
</body>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese');
@import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&subset=devanagari,latin-ext');

body{
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: 15px;
	line-height: 1.7;
	color: #c4c3ca;
	background-color: #1f2029;
	overflow-x: hidden;
}
.background-2nd{
	background-color: #14151a;
}

/* #Cursor
================================================== */

.cursor,
.cursor2{
	position: fixed;
	border-radius: 50%;	
	transform: translateX(-50%) translateY(-50%);
	pointer-events: none;
	left: -100px;
	top: 50%
}
.cursor{
	height: 0;
	width: 0;
	z-index: 99999;
}
.cursor2{
	height: 36px;
	width: 36px;
	z-index:99998;
	-webkit-transition:all 0.3s ease-out;
	transition:all 0.3s ease-out
}
.cursor2{
	border: 3px solid #fff;
	box-shadow: 0 0 22px rgba(255, 255, 255, 0.6);
}
.cursor2.hover{
	-webkit-transform:scale(2) translateX(-25%) translateY(-25%);
	transform:scale(2) translateX(-25%) translateY(-25%);
	border:none;
	background: rgba(255,255,255,.1);
	box-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
}
@media screen and (max-width: 1200px){
	.cursor,.cursor2{
		display: none
	}
}	
a {
	cursor: pointer;
	text-decoration: none;
}

/* #Sections and link
================================================== */

.section {
	position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}
.section li{
	position: relative;
  width: 100%;
  height: 50vh;
  display: block;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 3;
}
h2{
	position: absolute;
  text-align: center;
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 8vw;
  line-height: 0.5;
  text-transform: uppercase;
  font-weight: 800;
  bottom: 0;
  left: 0;
  width: 100%;
	color: #14151a;
  padding: 0;
  margin: 0;
  z-index: 1;
}
.section-link{
	position: absolute;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  top: 50%;
  left: 50%;
	color: #fff;
  z-index: 2;
  transform: translateX(-50%) translateY(-50%);
	-webkit-transition:all 0.3s ease-out;
	transition:all 0.3s ease-out;
}
.section-link:hover{
}
.section-link.cyan{
	color: #1abc9c;
}
.section-link.red{
	color: #e74c3c;
}
.section-link.blue{
	color: #3498db;
}
.section-link.yellow{
	color: #f1c40f;
}
.section-link.violet{
	color: #9b59b6;
}
.color-cyan .cursor2{
	border: 3px solid #1abc9c;
	box-shadow: 0 0 22px rgba(26, 188, 156, 0.6);
}
.color-cyan .cursor2.hover{
	background: rgba(26, 188, 156,.1);
  border: none;
	box-shadow: 0 0 14px rgba(26, 188, 156, 0.3);
}
.color-red .cursor2{
	border: 3px solid #e74c3c;
	box-shadow: 0 0 22px rgba(231, 76, 60, 0.6);
}
.color-red .cursor2.hover{
	background: rgba(231, 76, 60,.1);
  border: none;
	box-shadow: 0 0 14px rgba(231, 76, 60, 0.3);
}
.color-blue .cursor2{
	border: 3px solid #3498db;
	box-shadow: 0 0 22px rgba(52, 152, 219, 0.6);
}
.color-blue .cursor2.hover{
	background: rgba(52, 152, 219,.1);
  border: none;
	box-shadow: 0 0 14px rgba(52, 152, 219, 0.3);
}
.color-yellow .cursor2{
	border: 3px solid #f1c40f;
	box-shadow: 0 0 22px rgba(241, 196, 15, 0.6);
}
.color-yellow .cursor2.hover{
	background: rgba(241, 196, 15,.1);
  border: none;
	box-shadow: 0 0 14px rgba(241, 196, 15, 0.3);
}
.color-violet .cursor2{
	border: 3px solid #9b59b6;
	box-shadow: 0 0 22px rgba(155, 89, 182, 0.6);
}
.color-violet .cursor2.hover{
	background: rgba(155, 89, 182,.1);
  border: none;
	box-shadow: 0 0 14px rgba(155, 89, 182, 0.3);
}
.preload .cursor2{
	border: 1px solid #fff;
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
	-webkit-transform:scale(2) translateX(-25%) translateY(-25%);
	transform:scale(2) translateX(-25%) translateY(-25%);
}
.preload .cursor2.hover{
	background-color: transparent;
  background-repeat: no-repeat;
  background-image: url('https://ivang-design.com/svg-load/rings.svg');
  background-size: 55px 55px;
  background-position: center center;
  border-width: 0;
	box-shadow: 0 0 14px rgba(255, 255, 255, 0);
  opacity: 0.5;
}
.preload1 .cursor2{
	border: 5px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 22px rgba(255, 255, 255, 0);
}
.preload1 .cursor2.hover{
	background-color: transparent;
  background-repeat: no-repeat;
  background-image: url('https://ivang-design.com/svg-load/oval.svg');
  background-size: 35px 35px;
  background-position: center center;
  border-width: 0;
	box-shadow: 0 0 14px rgba(255, 255, 255, 0);
  opacity: 0.5;
}
.preload2 .cursor2{
	border: 3px solid #fff;
	box-shadow: 0 0 22px rgba(255, 255, 255, 0.6);
}
.preload2 .cursor2.hover{
	background-color: transparent;
  background-repeat: no-repeat;
  background-image: url('https://ivang-design.com/svg-load/tail-spin.svg');
  background-size: 35px 35px;
  background-position: center center;
  border-width: 0;
	box-shadow: 0 0 14px rgba(255, 255, 255, 0);
  opacity: 0.5;
}
.bars .cursor2{
	border: 3px solid #fff;
  border-radius: 0;
	box-shadow: 0 0 22px rgba(255, 255, 255, 0.6);
}
.bars .cursor2.hover{
	background-color: transparent;
  background-repeat: no-repeat;
  background-image: url('https://ivang-design.com/svg-load/bars.svg');
  background-size: 28px 28px;
  border-radius: 0;
  background-position: center center;
  border-width: 0;
	box-shadow: 0 0 14px rgba(255, 255, 255, 0);
  opacity: 0.5;
}

/* #Link to page
================================================== */

.link-to-portfolio {
	  position: fixed;
    top: 30px;
    right: 30px;
    z-index: 20;
    cursor: pointer;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 3px;
    background-position: center center;
    background-size: cover;
    background-image: url('https://ivang-design.com/ig-logo.jpg');
    box-shadow: 0 0 0 2px rgba(255,255,255,.1);
    transition: opacity .2s, border-radius .2s, box-shadow .2s;
    transition-timing-function: ease-out;
}
.link-to-portfolio:hover {
    opacity: 0.8;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0);
}
              
            
!

JS

              
                	//Page cursors

    document.getElementsByTagName("body")[0].addEventListener("mousemove", function(n) {
        t.style.left = n.clientX + "px", 
		t.style.top = n.clientY + "px", 
		e.style.left = n.clientX + "px", 
		e.style.top = n.clientY + "px", 
		i.style.left = n.clientX + "px", 
		i.style.top = n.clientY + "px"
    });
    var t = document.getElementById("cursor"),
        e = document.getElementById("cursor2");
    function n(t) {
        e.classList.add("hover")
    }
    function s(t) {
        e.classList.remove("hover")
    }
    s();
    for (var r = document.querySelectorAll(".hover-link"), a = r.length - 1; a >= 0; a--) {
        o(r[a])
    }
    function o(t) {
        t.addEventListener("mouseover", n), t.addEventListener("mouseout", s)
    }

	//Color change on scroll

	$('.section li:nth-child(2)').on('mouseover', function(event) {				
		$('body').addClass('color-cyan');
	});				
	$('.section li:nth-child(2)').on('mouseout', function(event) {			
		$('body').removeClass('color-cyan');
	});

	$('.section li:nth-child(3)').on('mouseover', function(event) {				
		$('body').addClass('color-red');
	});				
	$('.section li:nth-child(3)').on('mouseout', function(event) {			
		$('body').removeClass('color-red');
	});

	$('.section li:nth-child(4)').on('mouseover', function(event) {				
		$('body').addClass('color-blue');
	});				
	$('.section li:nth-child(4)').on('mouseout', function(event) {			
		$('body').removeClass('color-blue');
	});

	$('.section li:nth-child(5)').on('mouseover', function(event) {				
		$('body').addClass('color-yellow');
	});				
	$('.section li:nth-child(5)').on('mouseout', function(event) {			
		$('body').removeClass('color-yellow');
	});

	$('.section li:nth-child(6)').on('mouseover', function(event) {				
		$('body').addClass('color-violet');
	});				
	$('.section li:nth-child(6)').on('mouseout', function(event) {		
		$('body').removeClass('color-violet');
	});

	$('.section li:nth-child(7)').on('mouseover', function(event) {				
		$('body').addClass('preload');
	});				
	$('.section li:nth-child(7)').on('mouseout', function(event) {		
		$('body').removeClass('preload');
	});

	$('.section li:nth-child(8)').on('mouseover', function(event) {				
		$('body').addClass('preload1');
	});				
	$('.section li:nth-child(8)').on('mouseout', function(event) {		
		$('body').removeClass('preload1');
	});

	$('.section li:nth-child(9)').on('mouseover', function(event) {				
		$('body').addClass('preload2');
	});				
	$('.section li:nth-child(9)').on('mouseout', function(event) {		
		$('body').removeClass('preload2');
	});

	$('.section li:nth-child(10)').on('mouseover', function(event) {				
		$('body').addClass('bars');
	});				
	$('.section li:nth-child(10)').on('mouseout', function(event) {		
		$('body').removeClass('bars');
	});
              
            
!
999px

Console