javascript - How can I create full screen slides -


can me create full screen slides following website... browser scrollbar hidden, when scroll up/down or press up/down key slides moves next screen , active dot changed per slide.

http://vaalentin.github.io/2015/

$("nav a").click(function() {      $('html, body').animate({        scrolltop: $($(this).attr('href')).offset().top      }, 1000);  });
* {  		box-sizing: border-box;  		-webkit-box-sizing: border-box;  	}  	body {  		margin: 0px;  		overflow: hidden;  	}  	.box {  		display: table;  		width: 100vw;  		height: 100vh;  	}  	.box { background-color: rgb(179, 235, 255); }  	.box + .box { background-color: rgb(217, 255, 228); }  	.box + .box + .box { background-color: rgb(255, 221, 255); }  	.box + .box + .box + .box { background-color: rgb(255, 190, 190); }  	.box + .box + .box + .box + .box { background-color: rgb(253, 176, 255); }  	.box + .box + .box + .box + .box + .box { background-color: rgb(0, 26, 73); color: #fff; }  	.box + .box + .box + .box + .box + .box + .box { background-color: rgb(23, 0, 4); }    	.inner {  		display: table-cell;  		text-align: center;  		vertical-align: middle;  		font-size: 1vw;  	}  	nav {  		position: fixed;  		z-index: 999;  		top: 50%;  		right: 20px;  	}  		nav a:link,  		nav a:visited {  			display: block;  			width: 10px;  			height: 10px;  			margin-bottom: 10px;  			cursor: pointer;  			background-color: #222;  			border-radius: 50%;  		}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <nav>  	<a href="#home"></a>  	<a href="#services"></a>  	<a href="#team"></a>  	<a href="#work"></a>  	<a href="#process"></a>  	<a href="#faq"></a>  	<a href="#contact"></a>  </nav>    <div id="home" class="box">  	<div class="inner">  		<h1>home</h1>  	</div>  </div>    <div id="services" class="box">  	<div class="inner">  		<h1>services</h1>  	</div>  </div>    <div id="team" class="box">  	<div class="inner">  		<h1>team</h1>  	</div>  </div>    <div id="work" class="box">  	<div class="inner">  		<h1>recent work</h1>  	</div>  </div>    <div id="process" class="box">  	<div class="inner">  		<h1>process</h1>  	</div>  </div>    <div id="faq" class="box">  	<div class="inner">  		<h1>faq</h1>  	</div>  </div>    <div id="contact" class="box">  	<div class="inner">  		<h1>contact</h1>  	</div>  </div>

look @ impress.js gives working framework, have compose elements.

https://github.com/bartaz/impress.js/

edit

other framework fullpage.js

https://github.com/alvarotrigo/fullpage.js


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -