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 |
A Pen by Anton Petrov | 2,333 Kb |
Social media minimal icons | 3,365 Kb |
Material login screen with background image | 3,630 Kb |
Heartbeat | 2,079 Kb |
Fullscreen Menu Background Color Change | 2,873 Kb |
Gradient Text with CSS | 4,410 Kb |
Interactive map with SVG | 15,714 Kb |
CSS Fullscreen Minimal Menu | 2,498 Kb |
SVG menu | 13,939 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 |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Flexbox Grid - equal height | DaveOrDead | 2,855 Kb |
Christ the Redeemer | Prashantsani | 2,208 Kb |
Canvas Orbital Trails v2 | Jackrugile | 3,421 Kb |
SVG Icons Template | Legofsalmon | 2,618 Kb |
Sassy Buttons | Elyseholladay | 2,299 Kb |
AngularJS Skills | Supro | 3,312 Kb |
IE11 Test | Boostnewmedia | 4,998 Kb |
Menubar compass mixin | Michaelparenteau | 4,925 Kb |
Simple Weather App | Cmwebby | 0 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!