IMac Mock

Developer
Size
2,046 Kb
Views
20,240

How do I make an imac mock?

What is a imac mock? How do you make a imac mock? This script and codes were developed by Zachary Olson on 10 November 2022, Thursday.

IMac Mock Previews

IMac Mock - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>iMac Mock</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="desktop"> <div class="desktop-monitor"> <div class="desktop-screen"> <div class="desktop-content"></div> </div> </div> <div class="desktop-stand"></div>
</div>
</body>
</html>

IMac Mock - Script Codes CSS Codes

.desktop-content {	/*background-image: url('whatever.jpg');*/
}
.desktop { width: 80%;
}
.desktop, .desktop-stand {	margin: 0 auto;
}
.desktop:before, .desktop:after,
.desktop-content:after,
.desktop-monitor:before,
.desktop-stand:before, .desktop-stand:after { content: ''; display: block;
}
.desktop:before { float: left; width: 1px; padding-top: 80%;
}
.desktop:after { clear: both;
}
.desktop-monitor {	position: relative;	z-index: 2;	width: 100%;	box-shadow: 0px 2px 5px #CCC; padding-bottom: 10%; background-color: #E5E5E5;	border-radius: 5px;
}
.desktop-screen { padding: 3%; background-color: #000; border-radius: 5px 5px 0 0;
}
.desktop-content {	position: relative;	padding-top: 60%;	background-position: top center;	background-size: cover;	background-color: purple;
}
.desktop-content:after {	position: absolute;	bottom: -18%;	left: 50%;	width: 6%; padding-top: 6%;	margin-left: -3%;	background-color: #DDD;	border-radius: 50%;
}
.desktop-monitor:before {	position: absolute;	z-index: 2;	width: 100%;	height: 100%;	background: linear-gradient(30deg, rgba(204, 204, 204, 0) 0%,rgba(204, 204, 204, 0) 55%,rgba(204, 204, 204, 0.2) 56%,rgba(204, 204, 204, 0) 100%);
}
.desktop-stand{	margin-top: -1%;	width: 30%;
}
.desktop-stand:before { width: 78%; padding-top: 25%; margin: 0 auto; background-image: linear-gradient(to bottom, #DADADA 40%, #B9B9B9 100%);
}
.desktop-stand:after { width: 82%; margin: 0 auto; padding-top: 20%; background: linear-gradient(to bottom, #B9B9B9 0%,#D5D5D5 50%,#DADADA 100%); -webkit-transform: perspective(100px) rotate3d(1, 0, 0, 40deg) translateZ(10px); -o-transform: perspective(100px) rotate3d(1, 0, 0, 40deg) translateZ(10px); transform: perspective(100px) rotate3d(1, 0, 0, 40deg) translateZ(10px); border-radius: 0 0 5px 5px; border-bottom: 3px solid #AAA;
}
/* Codepen styling - ignore */
body { padding-top: 5%; background-color: #F1E0FF;
}
IMac Mock - Script Codes
IMac Mock - Script Codes
Home Page Home
Developer Zachary Olson
Username zacharyolson
Uploaded November 10, 2022
Rating 3.5
Size 2,046 Kb
Views 20,240
Do you need developer help for IMac Mock?

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!

Zachary Olson (zacharyolson) Script Codes
Create amazing Facebook ads 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!