Iphone Mockup
How do I make an iphone mockup?
What is a iphone mockup? How do you make a iphone mockup? This script and codes were developed by Chung Man Chau on 15 January 2023, Sunday.
Iphone Mockup - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Iphone Mockup</title> <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="wrapper"> <div class="iphone view_1"> <div class="iphone-top"> <span class="camera"></span> <span class="sensor"></span> <span class="speakers"></span> </div> <div class="iphone-btns"> <div class="iphone-btns-left"> <span class="sound side-btn"></span> <span class="volume-up side-btn"></span> <span class="volume-down side-btn"></span> </div> <div class="iphone-btns-right"> <span class="power side-btn"></span> </div> </div> <div class="iphone-content"> <span class="screen"></span> </div> <div class="iphone-bottom"> <span class="home-btn"></span> </div> </div> </div>
</body>
</html>
Iphone Mockup - Script Codes CSS Codes
html { background: #333;
}
html .wrapper { padding-top: 15vh;
}
.iphone { position: relative; width: 15rem; height: 31rem; margin: 0 auto; padding: 0; border: 5px solid #c99d97; border-radius: 2rem; background: #f8f8f8; box-shadow: 0 0 0 1px #b87d75, 0 0 30px 0 rgba(0, 0, 0, 0.5);
}
.iphone span { display: block;
}
.iphone .iphone-top { padding: .6rem 4.5rem 1.6rem; text-align: center;
}
.iphone .iphone-top .camera { display: block; width: .3rem; height: .3rem; margin: 0 auto .6rem; border-radius: 50%; background: #28292b;
}
.iphone .iphone-top .sensor { float: left; width: .5rem; height: .5rem; border-radius: 50%; background: #28292b;
}
.iphone .iphone-top .speakers { display: block; width: 2.4rem; height: .3rem; margin: 0 auto; border-radius: .7rem; background: #28292b;
}
.iphone .iphone-content { height: 23.6rem; padding: 0 .5rem;
}
.iphone .iphone-content .screen { display: block; overflow: hidden; width: 100%; height: 100%; background: url("https://i.imgsafe.org/0aa3f12.jpg") center center no-repeat; background-size: auto 100%; box-shadow: inset 0 0 3px 0 rgba(0, 0, 0, 0.2);
}
.iphone .iphone-content .screen::-webkit-scrollbar { display: none;
}
.iphone .iphone-btns { position: absolute; left: 0; width: 100%;
}
.iphone .iphone-btns .side-btn { position: absolute; width: 2px; border-radius: .5rem 0 0 .5rem; background: #ccc;
}
.iphone .iphone-btns .iphone-btns-left { position: absolute; left: -8px;
}
.iphone .iphone-btns .iphone-btns-left .sound { height: 1.5rem; top: .5rem;
}
.iphone .iphone-btns .iphone-btns-left .volume-up { top: 3rem; height: 2.5rem;
}
.iphone .iphone-btns .iphone-btns-left .volume-down { top: 5.7rem; height: 2.5rem;
}
.iphone .iphone-btns .iphone-btns-right { position: absolute; right: -6px;
}
.iphone .iphone-btns .iphone-btns-right .power { top: .5rem; height: 2rem; border-radius: 0 2px 2px 0;
}
.iphone .iphone-bottom { padding: .5rem 6rem 1rem;
}
.iphone .iphone-bottom .home-btn { width: 2.3rem; height: 2.3rem; margin: 0 auto; background: -webkit-linear-gradient(top left, #c99d97 0%, #AF8585 50%, #f0f2f2 75%, #c99d97 100%); background: -webkit-linear-gradient(bottom right, #c99d97 0%, #AF8585 50%, #f0f2f2 75%, #c99d97 100%); background: linear-gradient(bottom right, #c99d97 0%, #AF8585 50%, #f0f2f2 75%, #c99d97 100%); border-radius: 50%; position: relative;
}
.iphone .iphone-bottom .home-btn:after { background: -webkit-radial-gradient(#e6e6e6 0%, #ffffff 100%); background: radial-gradient(#e6e6e6 0%, #ffffff 100%); content: ""; position: absolute; left: .1rem; top: .1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
}
Developer | Chung Man Chau |
Username | chungman93 |
Uploaded | January 15, 2023 |
Rating | 3 |
Size | 3,283 Kb |
Views | 4,048 |
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 |
Rolling Word Hover | 2,541 Kb |
Calendar Mock Up | 5,880 Kb |
Delete Hover | 2,557 Kb |
Color Variables | 1,956 Kb |
CSS Masking Button Hovers | 1,173 Kb |
Grid with Flex Fallback | 1,710 Kb |
Expanding Tiles | 3,932 Kb |
Responsive CSS Grid | 3,175 Kb |
Holy Grail Layout - CSS Grid | 2,438 Kb |
Burger To Close | 2,491 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 |
Sticky notes with CSS3 | HaiNguyen007 | 2,146 Kb |
Multiple jCarousel | Pafnuty | 2,461 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
Basic template | Tomcat | 1,675 Kb |
Shape Outside - Polygon | Stacy | 3,954 Kb |
React TODO | Enieste | 3,320 Kb |
Cars going | Netoguimaraes | 1,699 Kb |
Improved Page Flipping Effect | Usaphp | 5,201 Kb |
Text Looping Transition | Agelber | 5,619 Kb |
Price table | Serluk | 5,928 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!