Basic 3D Fullscreen Transition
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 - 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 }); });
})

Developer | Anton Petrov |
Username | apetrov |
Uploaded | August 27, 2022 |
Rating | 4.5 |
Size | 3,270 Kb |
Views | 48,552 |
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!
Name | Size |
Material login screen with background image | 3,630 Kb |
SVG menu | 13,939 Kb |
A Pen by Anton Petrov | 2,333 Kb |
Heartbeat | 2,079 Kb |
Gradient Text with CSS | 4,410 Kb |
Interactive map with SVG | 15,714 Kb |
CSS Fullscreen Minimal Menu | 2,498 Kb |
Fullscreen Menu Background Color Change | 2,873 Kb |
Social media minimal icons | 3,365 Kb |
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!
Name | Username | Size |
Alter bg opacity on hover... | Chrisboon27 | 2,054 Kb |
CSS background-size - GSAP | Jonathan | 2,209 Kb |
Custom checkbox example | Capelo | 3,495 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 Kb |
See Through | Larrygeams | 77,410 Kb |
LAMP PURE CSS with Animation | Dam62500 | 2,911 Kb |
Slide like Mailbox | Hmps | 3,758 Kb |
Example SVGZ Data URI | Joeyhoer | 2,981 Kb |
SVG hamburger menu button | Elifitch | 2,602 Kb |
Tile Animation Thing | Frxnz | 4,332 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!