You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.0 KiB
91 lines
2.0 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Flip Card Animation</title>
|
|
<style>
|
|
*,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
direction: rtl;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
li,
|
|
ol,
|
|
ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.flip-card {
|
|
width: 300px;
|
|
height: 300px;
|
|
perspective: 800px;
|
|
margin: 100px;
|
|
}
|
|
|
|
.flip-card img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.filp-card-inner {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
text-align: center;
|
|
transition: transform 1s;
|
|
transform-style: preserve-3d;
|
|
|
|
}
|
|
|
|
.flip-card:hover .filp-card-inner {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.flip-card-front,
|
|
.flip-card-back {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
backface-visibility: hidden;
|
|
}
|
|
|
|
.flip-card-back {
|
|
background-color: lightblue;
|
|
color: #fff;
|
|
transform: rotateY(180deg);
|
|
}
|
|
</style>
|
|
<!-- notes
|
|
transform-style: preserve-3d;
|
|
این گزینه را برای ایجاد عمق ایجاد میشود
|
|
|
|
-->
|
|
</head>
|
|
|
|
<body>
|
|
<div class="flip-card">
|
|
<div class="filp-card-inner">
|
|
<div class="flip-card-front">
|
|
<img src="./css1/images/flipCard/@Wallpaper_4K3D (12614).jpg" alt="">
|
|
</div>
|
|
<div class="flip-card-back">
|
|
<h1>Car Image</h1>
|
|
<h5>made in some Country</h5>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |