Effect (the source code network disk address is at the end)
Pay attention to the public account "Moving the World" to see more video tutorials!
source code
index.html
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>卡片翻转映射</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="scene">
<div class="card">
<div class="card__face card__face--front">
<img src="./img1.jpg" />
</div>
<div class="card__face card__face--back">
<img src="./img2.jpg" />
</div>
</div>
<div class="card">
<div class="card__face car