Pure CSS iPhone 5S

Size
3,689 Kb
Views
12,144

How do I make an pure css iphone 5s?

An iPhone 5S built entirely using HTML and CSS. Also, I used a little jQuery to make the phone Interactive!. What is a pure css iphone 5s? How do you make a pure css iphone 5s? This script and codes were developed by Kenneth Alvares on 06 December 2022, Tuesday.

Pure CSS iPhone 5S Previews

Pure CSS iPhone 5S - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure CSS iPhone 5S</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class = "box">
<div class = "iPhone"> <div class = "Camera"> </div> <div class = "Speaker"> </div> <div class = "Screen"> <div class = "Display-1" id="Display-1"> <div class = "Overlay"> </div> <h1 id="time"> 9:41 </h1> <h2 id= "date"> Thursday, February 21 </h2> <h3 id="unlock"> Press Home to unlock </h3> <h4 id="active-dot">• <span id="inactive-dot">•</span></h4> </div> <div class = "Display-2" id="Display-2"> <div class = "Overlay"> </div> <div class = "Bar"> <div class = "Overlay"> </div> </div> <div class = "Icon"> <div class = "Gallery"> </div> </div> <h6 class ="Gallery_Text"> Photos </h6> <div class = "Notes"> </div> <h6 class ="Notes_Text"> Notes </h6> <div class = "Phone"> </div> <h6 class ="Phone_Text"> Phone </h6> <div class = "Icon-2"> <div class = "Safari"> </div> </div> <h6 class ="Safari_Text"> Safari </h6> <div class = "Mail"> </div> <h6 class ="Mail_Text"> Mail </h6> <div class = "Music"> </div> <h6 class ="Music_Text"> Music </h6> </div> <div class= "Display_Black" id="Black"> </div> </div> <div class = "Home" id="Home"> </div>
</div> <div class = "Lock" id="Lock"> </div> <div id="Lock_2"> </div> <div class = "Slider"> </div> <div class = "Vol_up"> </div> <div class = "Vol_down"> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Pure CSS iPhone 5S - Script Codes CSS Codes

body{ background: #bad3e2; padding-left: 142.5px;
}
.box{ height: 420px; width: 600px ; position: relative; margin: auto; display: block; margin-top: 10%;
}
.iPhone { height: 600px; width: 300px; background: linear-gradient(to top right, #000, #333); border-radius: 40px; border: 5px solid #555;
}
.Camera{ background: #2C4FAD; width: 7px; position: absolute; height: 7px; top: 30px; left: 144.5px; border-radius: 50%; border: 1px solid #333;
}
.Speaker{ width: 65px; height: 10px; background: #333; position: absolute; border-radius: 100px; top: 55px; left:117.5px
}
.Screen{ height: 450px; width: 275px; background: white; left: 17.5px; top: 85px; position: absolute;
}
.Home{ height: 55px; width: 55px; background: black; position: absolute; border-radius: 50%; left: 125px; top: 540px; box-shadow: -1px -1px 3px #ccc inset; z-index: 5; cursor: pointer;
}
.Lock{ width: 50px; height: 5px; position: absolute; border-radius: 5px 5px 0 0; background: #000; right: 350px; top: -5px; z-index: 7; cursor: pointer;
}
.Slider{ width: 5px; height: 40px; background: #000; position: absolute; top: 82px; left: -5px; border-radius: 5px 0 0 5px;
}
.Vol_up{ width: 5px; height: 25px; background: #000; position: absolute; top: 150px; left: -5px; border-radius: 5px 0 0 5px;
}
.Vol_down{ width: 5px; height: 25px; background: #000; position: absolute; top: 190px; left: -5px; border-radius: 5px 0 0 5px;
}
.Display-1{ background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/52377/pexels-photo-268819.jpeg); width: 100%; height: 100%; background-size: cover; position: absolute; z-index: 3;
}
#time{ color: #EAEAEA; font-family: 'San Francisco'; font-weight: 100; font-size: 60px; text-align: center;
}
#date{ color: #EAEAEA; font-family: 'San Francisco'; font-weight: 300; font-size: 18px; text-align: center; position: relative; top: -42.5px;
}
#unlock{ color: #EAEAEA; font-family: 'San Francisco'; font-weight: 400; font-size: 14px; text-align: center; position: relative; bottom: -210px; animation: flicker 1s infinite forwards linear;
}
#active-dot{ color: #EAEAEA; width: 100%; height: 100%; text-align: center; letter-spacing: 2px; position: relative; bottom: -195px;
}
#inactive-dot{ opacity: .5;
}
.Overlay{ position: absolute; height: 100%; width: 100%; background-color: #333; opacity: .2;
}
@keyframes flicker {	0% {	opacity: 1;	}	50% {	opacity: .5;	}	100% {	opacity: 1;	}
}
/** Ultra Light */
@font-face {	font-family: "San Francisco";	font-weight: 100;	src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff");
}
/** Regular */
@font-face {	font-family: "San Francisco";	font-weight: 400;	src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff");
}
/** Medium */
@font-face {	font-family: "San Francisco";	font-weight: 500;	src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-medium-webfont.woff");
}
.Display-2{ background: url(http://media.idownloadblog.com/wp-content/uploads/2014/09/iOS-8-iPad-Wallpaper-Jason-Zigrino-1.jpg); width: 100%; height: 100%; background-size: cover; position: absolute; z-index: 2; overflow: hidden;
}
.Bar{ position: absolute; width: 100%; height: 75px; background: #bfa8b6; bottom: 0 ; opacity: .9; filter: blur(1px);
}
.Gallery{ background: url(http://blog.digitaltavern.com/wp-content/uploads/2016/12/apple-photos-app-icon.png); background-size: cover; position: absolute; width: 55px; height: 55px;
}
.Icon{ width:55px; height: 55px; background: white; position:absolute; border-radius: 10px; top: 25px; left: 10px;
}
.Notes{background: url(https://static1.squarespace.com/static/50eca855e4b0939ae8bb12d9/t/53f6d64ee4b05c22548cc3c9/1408685646816/?format=300w); background-size: cover; position: absolute; width: 55px; height: 55px; top: 25px; left: 75px;
}
.Phone{background: url(https://www.softwarert.com/wp-content/uploads/iphone-phone-call-icon.png); background-size: cover; position: absolute; width: 61px; height: 61px; top: 375px; left: 10px;
}
.Safari{background: url(http://media.idownloadblog.com/wp-content/uploads/2016/01/safari-icon.png); background-size: cover; position: absolute; width: 55px; height: 55px; top: 0px; left: 0px;
}
.Icon-2{ width:55px; height: 55px; background: white; position:absolute; border-radius: 10px; top: 379px; left: 75px; display:block;
}
.Mail{ background: url(https://cdn.appletips.nl/wp-content/uploads/2013/09/mail-logo-7-retina-300x300.png); background-size: cover; position: absolute; width: 63px; height: 63px; top: 375px; left: 135px;
}
.Music{ background: url('http://virginradiolb.com/wp-content/uploads/2015/07/apple-music-icon.png'); background-size: cover; position: absolute; width: 59px; height: 59px; top: 378px; left: 200px;
}
.Gallery_Text{ font-family: 'San Francisco'; font-weight: 300; font-size: 11px; color: white; top: 60px; left: 21px; position: absolute;
}
.Notes_Text{ font-family: 'San Francisco'; font-weight: 300; font-size: 11px; color: white; top: 60px; left: 88px; position: absolute;
}
.Phone_Text{ font-family: 'San Francisco'; font-weight: 300; font-size: 11px; color: white; top: 410px; left: 25px; position: absolute;
}
.Safari_Text{ font-family: 'San Francisco'; font-weight: 300; font-size: 11px; color: white; top: 411px; left: 90px; position: absolute;
}
.Mail_Text{ font-family: 'San Francisco'; font-weight: 300; font-size: 11px; color: white; top: 411px; left: 155px; position: absolute;
}
.Music_Text{ font-family: 'San Francisco'; font-weight: 300; font-size: 11px; color: white; top: 411px; left: 215px; position: absolute;
}
#Lock_2{ width: 50px; height: 5px; position: absolute; border-radius: 5px 5px 0 0; background: black; right: 350px; top: -5px; z-index: 6; cursor: pointer;
}
.Display_Black{ background: #111; width: 100%; height: 100%; background-size: cover; position: absolute; z-index: 1;
}

Pure CSS iPhone 5S - Script Codes JS Codes

$('#Home').click(function() { $('#Display-2').css({ 'z-index': '3' }); $('#Display-1').css({ 'z-index': '2' }); $('#Black').css({ 'z-index': '1' });
});
$('#Lock').click(function() { $('#Display-2').css({ 'z-index': '1' }); $('#Black').css({ 'z-index': '3' }); $('#Display-1').css({ 'z-index': '2' }); $('#Lock_2').css({ 'z-index': '7' }); $('#Lock').css({ 'z-index': '6' });
});
$('#Lock_2').click(function() { $('#Display-2').css({ 'z-index': '1' }); $('#Black').css({ 'z-index': '2' }); $('#Display-1').css({ 'z-index': '3' }); $('#Lock_2').css({ 'z-index': '6' }); $('#Lock').css({ 'z-index': '7' });
});
Pure CSS iPhone 5S - Script Codes
Pure CSS iPhone 5S - Script Codes
Home Page Home
Developer Kenneth Alvares
Username kenalvares
Uploaded December 06, 2022
Rating 3
Size 3,689 Kb
Views 12,144
Do you need developer help for Pure CSS iPhone 5S?

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!

Kenneth Alvares (kenalvares) Script Codes
Create amazing SEO content 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!