Door| Open and Close
How do I make an door| open and close?
Open it in Editor portal to check its transition.. What is a door| open and close? How do you make a door| open and close? This script and codes were developed by Mariam Massadeh on 22 September 2022, Thursday.
Door| Open and Close - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Door| Open and Close</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src="https://s.codepen.io/assets/libs/prefixfree.min.js"></script>
<script src="https://code.jquery.com/jquery-latest.js"></script>
<p class="alert">click on the door and try to click on more than one door</p> <div class="perspective" onclick="openDoor(this)"> <div class="thumb"> </div> </div> <div class="perspective" onclick="openDoor(this)"> <div class="thumb"> </div> </div> <div class="perspective" onclick="openDoor(this)"> <div class="thumb"> </div> </div> <div class="perspective" onclick="openDoor(this)"> <div class="thumb"> </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>
Door| Open and Close - Script Codes CSS Codes
body
{ background-color:#f0f0f0;
}
.container
{ margin:0 auto; width:90%;
}
.perspective
{ background: url("http://dc428.4shared.com/img/QWu4ziBq/s3/doorBorder.png"); background-repeat: no-repeat; background-position: center center; position: relative; display: inline; float: left; height: 274px; width: 147px; margin: 20px; margin-left: 0px; -webkit-perspective: 450; border-radius: 3px; box-sizing: border-box; } .thumb { background: url("http://dc428.4shared.com/img/-vayshJ-/s3/ClassDoor.png"); background-repeat: no-repeat; background-position: center center; width: 147px; height: 274px; position: absolute; box-sizing: border-box; border-radius: 3px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .0) inset; transition: 1s transform linear; transform-origin: left; cursor: pointer; } .thumbOpened { transform: rotateY(-90deg); transform-origin: 8px; transition: .5s linear; }
.alert {
padding: 8px 35px 8px 14px;
margin-bottom: 20px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
background-color: #fcf8e3;
border: 1px solid #fbeed5;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px; color: #000; transform-origin: left; transform:rotateY(180deg); opacity:0; animation-name: go; animation-duration: 0.5s; animation-timing-function: ease-in-out; animation-fill-mode: forwards; animation-delay: 0.5s; width:350px;
}
@keyframes go { 100%{ opacity:1; transform:rotateY(0deg); }
}
Door| Open and Close - Script Codes JS Codes
function openDoor(field) { var y = $(field).find(".thumb"); var x = y.attr("class"); if (y.hasClass("thumbOpened")) { y.removeClass("thumbOpened"); } else { $(".thumb").removeClass("thumbOpened"); y.addClass("thumbOpened"); } }
Developer | Mariam Massadeh |
Username | MariamMassadeh |
Uploaded | September 22, 2022 |
Rating | 4.5 |
Size | 2,445 Kb |
Views | 91,080 |
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 |
Receipt with result | 2,774 Kb |
Animated Progress Bar | 2,271 Kb |
CSS3 Animation | 4,351 Kb |
Coming Soon | 1,680 Kb |
Animated evaluation pen with a tooltip | 2,771 Kb |
Emploee Tree | 3,670 Kb |
Simple Chat Conversation | 4,210 Kb |
Notepad pen | 2,300 Kb |
Responsive Menu with sub menu- CSS3 animation, simple jquery | 3,663 Kb |
Qoute | 2,776 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 |
BenU Maintenance Site | Ksherman | 4,893 Kb |
Knob rotation | Alemesre | 2,122 Kb |
Pictos font library from CodePen | Jstam | 3,790 Kb |
03 - CSS Variables | Run-time | 2,682 Kb |
Basic jQuery Filter list | Mtedwards | 2,464 Kb |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
Login with flip 3d animation | Mariusbalaj | 3,014 Kb |
Pure CSS Tooltip | APinix | 2,815 Kb |
Ipad Mini Showcase | Hornebom | 10,479 Kb |
Pomodoro Clock | Osycon | 3,705 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!