类“circle”
Coddy 3D 卡片 | 前端项目 课程的第 25 课,共 31 课。
挑战
简单目标类“circle”:
- 将 display 设置为 block。
- 将 position 设置为 absolute。
- 将 aspect-ratio 设置为 1。
- 将 border-radius 设置为 50%。
将 top 和 right 设置为 0。
添加以下属性,让效果更完善:
background: rgba(0, 249, 203, 0.2); transition: all 0.5s ease-in-out; box-shadow: rgba(100, 100, 111, 0.2) -10px 10px 20px 0px; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
亲手试试
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- 在这里编写 HTML 代码 -->
<script src="script.js"></script>
</body>
</html>3D 卡片 | 前端项目中的所有课
1简介
你将构建什么?自己练习: Web 在线编辑器