1
While observing this page you may notice that there are links like Home, Services, Work, About and Blog. When you click on Services it changes pages using a slider effect, as if the page is being switched from right to left, and so are the other links.
I wanted to put this effect on my web page, since I don’t know the name of the resource, I think it can be done in Jquery or CSS.
I just need to know the name of this resource in order to implement in my pages.
//////////////////////////////////// updating
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<h:outputStylesheet library="css" name="bootstrap-theme.css" />
<h:outputStylesheet library="css" name="bootstrap.css" />
<h:outputStylesheet library="css" name="sistema.css" />
<link rel="stylesheet" type="text/css"
href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"/>
<h:outputScript library="js" name="jquery-2.1.4.min.js" />
<h:outputScript library="js" name="jquery-ui.js" />
<h:outputScript library="js" name="bootstrap.js" />
</h:head>
<script type="text/javascript">
//<![CDATA[
$(window).load(function() {
function transitionPage() {
// Hide to left / show from left
$("#home").toggle("slide", {
direction : "left"
}, 500);
// Show from right / hide to right
$("#servico").toggle("slide", {
direction : "right"
}, 500);
}
$(document).ready(function() {
$('#home').click(transitionPage);
$('#servico').click(transitionPage);
});
});//]]>
</script>
<h:body>
<div id="part2">
<div id="home">
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
</div>
<div id="servico">
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
</div>
</div>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</h:body>
</html>
and yet you didn’t take!
http://tympanus.net/codrops/2013/05/07/a-collection-of-page-transitions/
– DiegoAugusto
Search by Transition Pages.
– Randrade
very good the suggestions!
– wladyband