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.

            
              <!-- CONTAINER Navigation bar -->
<div class="container-fluid" id="home">
	<nav class="navbar navbar-default navbar-fixed-top">
	  <div class="container">
		 <div class="navbar-header">
	<!--Burger navbar -->
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
			  <span class="icon-bar"></span>
			  <span class="icon-bar"></span>
			  <span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">&#60;mwf&#62;</a>
		 </div>
		 <div class="collapse navbar-collapse" id="myNavbar">
			<ul class="nav navbar-nav navbar-right">
			  <li><a href="#home">HOME</a></li>
			  <li><a href="#about">ABOUT</a></li>
			  <li><a href="#portfolio">PORTFOLIO</a></li>
			  <li><a href="#contacts">CONTACTS</a></li>
			</ul>
		 </div>
	  </div>
	</nav>
	<div class="home text-center">	
		<h2 class="welcome">Welcome to Max Web Factory</h2>
		<h4 class="welcome welcomecredo">think, create, enjoy...</h4>
	</div>
	


<!-- home 4 buttons: home, about, portfolio -->
<div class="home text-center welcome-btn">
			
			<a class="btn btn-default page-scroll btn hom1" href="#home">Home</a>
			<a class="btn btn-default page-scroll btn hom1" href="#about">About</a>
			<a class="btn btn-default page-scroll btn hom1" href="#portfolio">Portfolio</a>
			<a class="btn btn-default page-scroll btn hom1" href="#contacts">Contacts</a>
	</div>

</div>


<!-- CONTAINER ABOUT -->
<div class="container about" id="about">
	<h2 class="about-heading text-center text-uppercase">About my factory</h2>
	<div class="row">
		<div class="col-xs-4 col-md-4 col-lg-4">		
		<p><div class="first-stage">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div><div class="second-stage">Donec rutrum placerat faucibus. Interdum et malesuada fames ac ante ipsum primis in faucibus.</div><div class="third-stage">Mauris et imperdiet libero. Etiam consequat pellentesque suscipit. Vestibulum magna quam, rhoncus id eros ut, convallis dignissim justo.</div><div class="fourth-stage">Mauris et imperdiet libero. Etiam consequat pellentesque suscipit. Vestibulum magna quam, rhoncus id eros ut, convallis dignissim justo.</div><div class="fifth-stage">Mauris et imperdiet libero. Etiam consequat pellentesque suscipit. Vestibulum magna quam, rhoncus id eros ut, convallis dignissim justo.</div></p>
		</div>
		<div class="col-xs-4 col-md-4 col-lg-4">		
		<p><div class="first-stage">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div><div class="second-stage">Donec rutrum placerat faucibus. Interdum et malesuada fames ac ante ipsum primis in faucibus.</div><div class="third-stage">Mauris et imperdiet libero. Etiam consequat pellentesque suscipit. Vestibulum magna quam, rhoncus id eros ut, convallis dignissim justo.</div><div class="fourth-stage">Mauris et imperdiet libero. Etiam consequat pellentesque suscipit. Vestibulum magna quam, rhoncus id eros ut, convallis dignissim justo.</div><div class="fifth-stage">Mauris et imperdiet libero. Etiam consequat pellentesque suscipit. Vestibulum magna quam, rhoncus id eros ut, convallis dignissim justo.</div></p>
		</div>
		<div class="col-xs-4 col-md-4 col-lg-4">		
		<p><div class="first-stage">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div><div class="second-stage">Donec rutrum placerat faucibus. Interdum et malesuada fames ac ante ipsum primis in faucibus.</div><div class="third-stage">Mauris et imperdiet libero. Etiam consequat pellentesque suscipit. Vestibulum magna quam, rhoncus id eros ut, convallis dignissim justo.</div><div class="fourth-stage">Mauris et imperdiet libero. Etiam consequat pellentesque suscipit. Vestibulum magna quam, rhoncus id eros ut, convallis dignissim justo.</div><div class="fifth-stage">Mauris et imperdiet libero. Etiam consequat pellentesque suscipit. Vestibulum magna quam, rhoncus id eros ut, convallis dignissim justo.</div></p>
		</div>
	</div>
<div class="position-to"></div>
</div>

<!-- CONTAINER PORTFOLIO -->
<div class="container portfolio" id="portfolio">
		<h2 class="portfolio-heading text-center text-uppercase ">Portfolio</h2>
	
	<div class="row">
		<div class="col-xs-6 col-md-6 col-lg-6 myworks"><p data-height="268" data-theme-id="0" data-slug-hash="RabdPb" data-default-tab="result" data-user="maxplakhuta" data-preview="true" class='codepen'>See the Pen <a href='https://codepen.io/maxplakhuta/pen/RabdPb/'>RabdPb</a> by Max (<a href='https://codepen.io/maxplakhuta'>@maxplakhuta</a>) on <a href='https://codepen.io'>CodePen</a>.</p>
<script async src="//assets.codepen.io/assets/embed/ei.js"></script></div>
		<div class="col-xs-6 col-md-6 col-lg-6 myworks"><p data-height="268" data-theme-id="0" data-slug-hash="wGdJYP" data-default-tab="result" data-user="maxplakhuta" data-preview="true" class='codepen'>See the Pen <a href='https://codepen.io/maxplakhuta/pen/wGdJYP'>>Build a random quote</a> by Max (<a href='https://codepen.io/maxplakhuta'>@maxplakhuta</a>) on <a href='https://codepen.io'>CodePen</a>.</p>
<script async src="//assets.codepen.io/assets/embed/ei.js"></script></div>

</div>
	
	
	
<!-- CONTAINER CONTACTS -->
	
<div class="container text-center contacts">
	<div class="row">
		<h2 class="text-center text-uppercase contacts-heading">Contacts</h2>
		<div class="soc-btns">
			<div class="col-xs-4">
				<a href="https://www.facebook.com/max.plakhut" class="btn-link"  target="_blank"><i class="fa fa-facebook-square"></i></a>
			</div>
		<div class="col-xs-4">
				<a href="https://www.linkedin.com/in/max-plakhuta-347b7a2a?trk=hp-identity-name" class="btn-link" target="_blank"><i class="fa fa fa-linkedin-square"></i></a>
			</div>
			<div class="col-xs-4">
				<a href="mailto:netech@live.com" class="btn-link"><i class="fa fa-envelope-o"></i></a>
			</div>
		</div>
	</div>
</div>
	
<!-- CONTAINER FOOTER -->
<footer class="text-center footer" id="contacts">
  <p>Designed and coded by <a class="footer-link" href="https://www.freecodecamp.com/maxplakhuta" title="Max Web Factory" target="_blank">&#60;<strong>mwf</strong>&#62;</a></p> 
</footer>
            
          
!
            
              body {
    	background-color: rgb(210,50,98);
    	min-height: 1800px;
	 	color: #fff;
}

.home.about.portfolio.contacts {
		height: 100%;
		
}

.navbar {
		margin-bottom: 0;
      background-color: transparent;
		z-index: 9999;
      border: 0;
      font-size: 14px !important;
      line-height: 1.42857143 !important;
      letter-spacing: 4px;
      border-radius: 0;
      font-family: Montserrat, sans-serif;
}
.navbar-brand{
		font-size: 20px;
		font-weight: bold;
}

  .navbar li a, .navbar .navbar-brand {
	   color: #fff !important;
	  
}

  .navbar-nav li a:hover, .navbar-nav li.active a {
	   color: #f4511e !important;
      background-color: transparent;
}

  .navbar-default .navbar-toggle {
      border-color: transparent;
      color: #fff !important;
}

.icon-bar {
  		background-color: #fff !important;
}

.welcome {
	letter-spacing: 4px;
}

.welcomecredo {
		font-style: italic;
}

.btn {
		width: 110px;
 		padding: auto;
		margin-top: 120px;
      background-color: transparent;
      color: #f1f1f1;
      border-radius: 0;
      transition: .2s;
		border-color: #fff;
		letter-spacing: 4px;
}

 .btn:hover, .btn:focus {
      border: 1px solid #333;
      background-color: #fff;
      color: #f4511e;
}

.container-fluid {
      padding-top: 250px;
      padding-bottom: 250px;
}

.about-heading {
		letter-spacing: 4px;
		margin-top: 120px;
		margin-bottom: 30px;
}

.home {
		margin-top: -20px;
}

.portfolio-heading {
	margin-bottom: 50px;
	margin-top: 120px;
	letter-spacing: 4px;
}

.contacts-heading {
	letter-spacing: 4px;
	margin-top: 220px;
}

.soc-btns {
	font-size: 50px;
	margin-top: 50px;
}

.soc-btns a:hover {
	color: #f4511e !important;
}

.btn-link a:visited {
	color: black;
	background-color: black;
	outline: none;
}

.btn-link {
	text-decoration: none;
	color: #fff;
}

.footer {
	position: absolute;
	margin-top: 175px;
	width: 100%;
	
}

  footer a:hover {
     color: #fff;
	  text-decoration: none; 

}

.footer-link {
	color: #f4511e;
}

.footer-link a:visited {
	color: none !important;
}
            
          
!
            
              // BACKGROUND COLOR CHANGE
$(document).ready(function(){ 
    var scroll_pos = 0;
    var animation_begin_pos = 0; //where you want the animation to begin
    var animation_end_pos = 1000; //where you want the animation to stop
    var beginning_color = new $.Color( 'rgb(210,50,98)' ); //we can set this here, but it'd probably be better to get it from the CSS; for the example we're setting it here.
    var ending_color = new $.Color( 'rgb(0,197,209)' ); ;//what color we want to use in the end
    $(document).scroll(function() {
        scroll_pos = $(this).scrollTop(); 
        if(scroll_pos >= animation_begin_pos && scroll_pos <= animation_end_pos ) { 
           // console.log( 'scrolling and animating' );
            //we want to calculate the relevant transitional rgb value
            var percentScrolled = scroll_pos / ( animation_end_pos - animation_begin_pos );
            var newRed = beginning_color.red() + ( ( ending_color.red() - beginning_color.red() ) * percentScrolled );
            var newGreen = beginning_color.green() + ( ( ending_color.green() - beginning_color.green() ) * percentScrolled );
            var newBlue = beginning_color.blue() + ( ( ending_color.blue() - beginning_color.blue() ) * percentScrolled );
            var newColor = new $.Color( newRed, newGreen, newBlue );
            //console.log( newColor.red(), newColor.green(), newColor.blue() );
            $('body, .hom1').animate({ backgroundColor: newColor }, 0);
        } else if ( scroll_pos > animation_end_pos ) {
             $('body, .hom1').animate({ backgroundColor: ending_color }, 0);
        } else if ( scroll_pos < animation_begin_pos ) {
             $('body, .hom1').animate({ backgroundColor: beginning_color }, 0);
        } else { }
    });
});

// WELCOMING TEXT SCROLLING FADE OUT
$(window).scroll(function() {    
    var scroll = $(window).scrollTop();
        $('.welcome').css({'opacity':( 225-scroll )/100});
		  $('.welcome-btn').css({'opacity':( 375-scroll )/100});
		  $('.about-heading').css({'opacity':( 800-scroll )/100});	
		  $('.first-stage').css({'opacity':( 885-scroll )/100});
		  $('.second-stage').css({'opacity':( 915-scroll )/100});
		  $('.third-stage').css({'opacity':( 955-scroll )/100});
		  $('.fourth-stage').css({'opacity':( 1075-scroll )/100});
		  $('.fifth-stage').css({'opacity':( 1150-scroll )/100});
		  $('.portfolio-heading').css({'opacity':( 1250-scroll )/100});
		  $('.myworks').css({'opacity':( 1350-scroll )/100});
});
            
          
!
999px
🕑 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 ..................

Console