Ipad look like screen.
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="style.css">
	<title>Rahul-test</title>
	<style type="text/css">
		body
{
	margin: 0;
	padding: 0;
}
.iphoneX
{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%) rotate(-15deg);
	width: 400px;
	height: 540px;
	background: #000;
	border-radius: 40px;
	box-shadow: inset 0 0 15px rgba(0,0,0,.2), 0 40px 100px rgba(0,0,0,.8);
	transition: .5s
}
.iphone:hover
{
	transform: translate(-50%,-50%) rotate(0deg);
}
.iphoneX:before
{
	content: '';
	position: absolute;
	top: 15px;
	left: 15px;
	width: calc(100% - 30px);
	height: calc(100% - 30px);
	background: #262626;
	border-radius: 40px;
	box-shadow: inset 0 0 20px rgba(0,0,0,.2);
	transition: .5s;
}
.iphoneX:hover:before
{
	background: url(bg.jpg);
	background-size: cover;
}
.iphoneX:after
{
	content: '';
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: 130px;
	height: 16px;
	background: #fff;
	border-bottom-left-radius: 10px; 
	border-bottom-right-radius: 10px; 
}
	</style>
</head>
<body>
	<div class="iphoneX"></div>
</body>
</html>

