当前位置:网站首页>祝所有码农七夕快乐~
祝所有码农七夕快乐~
2022-08-05 11:07:00 【激进的韭菜】
创意代码表白
以程序员的方式撒狗粮,专业浪漫,值得拥有!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/* 跳动 */
@keyframes beat {
from {
transform: rotate(45deg) scale(2);
}
to {
transform: rotate(45deg) scale(2.3);
}
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #f7f1e3;
}
.love {
width: 100px;
height: 100px;
background-color: #e74c3c;
transform: rotate(45deg) scale(2);
animation: beat 800ms ease infinite alternate forwards;
position: relative;
}
.score {
width: 80px;
height: 80px;
background-color: #e74c3c;
position: absolute;
top: 10px;
left: 10px;
z-index: 100;
}
.content {
transform: rotate(-45deg);
position: absolute;
top: 12px;
left: -19px;
font-size: 20px;
}
.love,
.love::before,
.love::after {
box-shadow: -5px 16px 12px -3px rgba(0,0,0,0.4) inset;
}
.love::before,
.love::after {
content: "";
display: block;
width: 100px;
height: 100px;
background-color: rgba(231, 76, 60,1.0);
border-radius: 50%;
position: absolute;
}
.love::before {
right: 50%;
}
.love::after {
bottom: 50%;
}
</style>
</head>
<body>
<div class="love"><div class="score"><div class="content">七夕快乐~</div></div></div>
</body>
</html>
- 效果演示
你是CSS我是DIV,没有你,就算我布局的再好,没了你也失去了颜色
…
边栏推荐
猜你喜欢
随机推荐
【心里效应】98 个著名的心理效应
PostgreSQL 2022 报告:流行度上涨,开源、可靠性和扩展是关键
nyoj1185最大最小值(线段树)
时间格式2020-01-13T16:00:00.000Z中的T和Z分别表示什么,如何处理
Android 开发用 Kotlin 编程语言三 循环控制
TiDB 6.0 Placement Rules In SQL Usage Practice
19.3 restart the Oracle environment
今天告诉你界面控件DevExpress WinForms为何弃用经典视觉样式
低代码平台开发有什么好处?
nyoj86 找球号(一) set容器和二分 两种解法
Can't get in to ask questions.I want to ask you a question about the return value (traversal of the graph), please give Xiaobai an answer.
反射修改jsessionid实现Session共享
朴素贝叶斯
lvgl 实现状态提示图标自动对齐补位显示
ECCV 2022 | 视听分割:全新任务,助力视听场景像素级精细化理解
手把手教你定位线上MySQL慢查询问题,包教包会
前沿技术数字孪生如何应用在智慧城市上?
hdu4545 魔法串
#yyds干货盘点#JS数组和树相互转化
Chapter 5: Activiti process shunting judgment, judging to go to different task nodes