Basic 3D Fullscreen Transition

Developer
Size
3,270 Kb
Views
48,576

How do I make an basic 3d fullscreen transition?

3D page fullscreen animated transition with CSS3 and jQuery.. What is a basic 3d fullscreen transition? How do you make a basic 3d fullscreen transition? This script and codes were developed by Anton Petrov on 27 August 2022, Saturday.

Basic 3D Fullscreen Transition Previews

Basic 3D Fullscreen Transition - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Basic 3D Fullscreen Transition</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="content"> <div class="main-page"> <nav> <a class="alink">from right to left</a> <a class="blink">and viceversa</a> <a class="clink">from top to bottom</a> <a class="dlink">and from bottom</a> </nav> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Basic 3D Fullscreen Transition - Script Codes CSS Codes

@import url(http://fonts.googleapis.com/css?family=Raleway:100);
body { background-color: #000; overflow: hidden !important;
}
nav { width: 100%; position: absolute; top: 50%; height: 360px; margin-top: -180px; text-align: center;
}
nav a { background-color: #222; display: block; line-height: 90px; margin-top: 1px; color: #666; font-family: 'Raleway'; font-size: 3em; transition: all 300ms ease-out; -webkit-transition: all 300ms ease-out;
}
nav a:hover { cursor: pointer; color: white; text-decoration: none;
}
div.content { position: absolute; width: 100%; height: 100%; perspective: 2000px; -webkit-perspective: 2000px; perspective-origin: 50% 50%; -webkit-perspective-origin: 50% 50%;
}
div.content .main-page { position: absolute; text-align: center; width: 100%; height: 100%; background-color: #222;
}
@keyframes rtl { 0% { opacity: 1; } 50% { opacity: 0; transform: translateZ(-1800px) rotateY(180deg); } 100% { opacity: 1; transform: translateZ(0px) rotateY(360deg); }
}
@-webkit-keyframes rtl { 0% { opacity: 1; } 50% { opacity: 0; -webkit-transform: translateZ(-1800px) rotateY(180deg); } 100% { opacity: 1; -webkit-transform: translateZ(0px) rotateY(360deg); }
}
@keyframes ltr { 0% { opacity: 1; } 50% { opacity: 0; transform: translateZ(-1800px) rotateY(-180deg); } 100% { opacity: 1; transform: translateZ(0px) rotateY(-360deg); }
}
@-webkit-keyframes ltr { 0% { opacity: 1; } 50% { opacity: 0; -webkit-transform: translateZ(-1800px) rotateY(-180deg); } 100% { opacity: 1; -webkit-transform: translateZ(0px) rotateY(-360deg); }
}
@keyframes ttb { 0% { opacity: 1; } 50% { opacity: 0; transform: translateZ(-1800px) rotateX(180deg); } 100% { opacity: 1; transform: translateZ(0px) rotateX(360deg); }
}
@-webkit-keyframes ttb { 0% { opacity: 1; } 50% { opacity: 0; -webkit-transform: translateZ(-1800px) rotateX(180deg); } 100% { opacity: 1; -webkit-transform: translateZ(0px) rotateX(360deg); }
}
@keyframes btt { 0% { opacity: 1; } 50% { opacity: 0; transform: translateZ(-1800px) rotateX(-180deg); } 100% { opacity: 1; transform: translateZ(0px) rotateX(-360deg); }
}
@-webkit-keyframes btt { 0% { opacity: 1; } 50% { opacity: 0; -webkit-transform: translateZ(-1800px) rotateX(-180deg); } 100% { opacity: 1; -webkit-transform: translateZ(0px) rotateX(-360deg); }
}

Basic 3D Fullscreen Transition - Script Codes JS Codes

$(document).ready( function() { var firstClass = 'rtl'; var secondClass = 'ltr'; var thirdClass = 'ttb'; var fourthClass = 'btt'; var fillMode = 'forwards'; var animDuration = '2s'; var timingFunction = 'ease-in-out'; $('.alink').click( function() { $('.main-page').css({ "animation": firstClass + " " + fillMode + " " + animDuration + " " + timingFunction, "-webkit-animation": firstClass + " " + fillMode + " " + animDuration + " " + timingFunction }); }); $('.blink').click( function() { $('.main-page').css({ "animation": secondClass + " " + fillMode + " " + animDuration + " " + timingFunction, "-webkit-animation": secondClass + " " + fillMode + " " + animDuration + " " + timingFunction }); }); $('.clink').click( function() { $('.main-page').css({ "animation": thirdClass + " " + fillMode + " " + animDuration + " " + timingFunction, "-webkit-animation": thirdClass + " " + fillMode + " " + animDuration + " " + timingFunction }); }); $('.dlink').click( function() { $('.main-page').css({ "animation": fourthClass + " " + fillMode + " " + animDuration + " " + timingFunction, "-webkit-animation": fourthClass + " " + fillMode + " " + animDuration + " " + timingFunction }); });
})
Basic 3D Fullscreen Transition - Script Codes
Basic 3D Fullscreen Transition - Script Codes
Home Page Home
Developer Anton Petrov
Username apetrov
Uploaded August 27, 2022
Rating 4.5
Size 3,270 Kb
Views 48,576
Do you need developer help for Basic 3D Fullscreen Transition?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Anton Petrov (apetrov) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!