当前位置: 首页 > news >正文

白色情人节,予你无尽的爱

源码:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3.14白色情人节 · 只对你心动</title>
<!-- 引入图标库 -->
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* 页面基础样式:爱的渐变色调 */
body {
min-height: 100vh;
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
font-family: "Microsoft YaHei", sans-serif;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
}

/* 爱心飘落特效容器 */
.hearts {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}

/* 主文案样式 */
.love-title {
font-size: 50px;
color: #ff4d6d;
text-shadow: 0 0 10px rgba(255,77,109,0.5), 0 0 20px rgba(255,77,109,0.3);
margin-bottom: 20px;
animation: pulse 2s infinite alternate;
z-index: 10;
text-align: center;

}

/* 副标题暖心文案 */
.love-subtitle {
font-size: 24px;
color: #c51162;
margin-bottom: 30px;
z-index: 10;
text-align: center;
line-height: 1.6;
}

/* 亲昵文案 */
.love-text {
font-size: 20px;
color: #d81b60;
z-index: 10;
text-align: center;
max-width: 80%;
animation: fadeIn 3s ease;
}

/* 心动按钮 */
.love-btn {
margin-top: 40px;
padding: 15px 40px;
background: #ff4d6d;
color: white;
border: none;
border-radius: 50px;
font-size: 22px;
cursor: pointer;
box-shadow: 0 8px 20px rgba(255,77,109,0.4);
transition: all 0.3s ease;
z-index: 10;
}

.love-btn:hover {
transform: scale(1.1);
background: #ff2a51;
box-shadow: 0 12px 25px rgba(255,77,109,0.6);
}

/* 动画:心跳缩放 */
@keyframes pulse {
0% { transform: scale(1); }
100% { transform: scale(1.08); }

}

/* 动画:淡入 */
@keyframes fadeIn {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0); }
}
</style>
</head>
<body>
<!-- 爱心飘落特效 -->
<div class="hearts" id="hearts"></div>

<!-- 暖心文案 -->
<h1 class="love-title">💖 3.14 白色情人节 💖 </h1>
<p class="love-subtitle">爱意不止37.2℃,是满心满眼都是你的温度</p>
<p class="love-text">
愿你被温柔以待,被爱意包围<br>
三餐四季,岁岁年年,永远有人把你捧在手心里<br>
今天,全世界的温柔与偏爱,都只属于你 ✨
</p>

<!-- 心动按钮 -->
<button class="love-btn" onclick="sendLove()">
<i class="fa-solid fa-heart"></i> 点击接收满满爱意
</button>

<script>
// 爱心飘落特效
function createHearts() {
const heartsContainer = document.getElementById('hearts');
const heartCount = 50; // 爱心数量

for (let i = 0; i < heartCount; i++) {
const heart = document.createElement('div');
heart.innerHTML = '❤️';
heart.style.position = 'absolute';
heart.style.fontSize = Math.random() * 20 + 10 + 'px';
heart.style.left = Math.random() * 100 + '%';
heart.style.top = '-10px';
heart.style.animation = `fall ${Math.random() * 3 + 2}s linear infinite`;
heart.style.animationDelay = Math.random() * 5 + 's';
heartsContainer.appendChild(heart);
}
}

// 定义爱心下落动画

const style = document.createElement('style');
style.innerHTML = `
@keyframes fall {
0% { transform: translateY(0) rotate(0deg); opacity: 1; }
100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
`;
document.head.appendChild(style);

// 按钮点击特效
function sendLove() {
alert('💌 爱意已送达!愿你3.14白色情人节快乐,永远被爱包围~');
}

// 加载完成后生成爱心
window.onload = createHearts;
</script>
</body>
</html>

http://www.jsqmd.com/news/477349/

相关文章:

  • 算法设计与分析-习题2.3
  • 一文讲透|9个降AIGC平台测评:本科生降AI率必备指南
  • 2026中国停车场管理系统十大标杆供应商榜单——智赋停车,共筑城市出行新生态
  • Windows桌面审计:用OCR高效提取VHD磁盘内容
  • DBeaver Ultimate Edtion 26.0 Multilingual (macOS, Linux, Windows) - 通用数据库工具
  • 基于DSC或DSOGI的“三电平逆变器带不平衡负载”仿真研究:SVPWM/SPWM调制与T型/...
  • 计算机毕业设计源码:Python 携程旅游数据分析大屏系统 Django框架 selenium 爬虫 大数据 大模型 数据分析 agent 机器学习 旅行 出游 出行(建议收藏)✅
  • 心电域泛化研究从0入门系列 | 第三篇:数据集+多源域划分+标准评估——域泛化科研的“实验地基”
  • 汽车Dugoff轮胎模型,该simulink与carsim联合仿真模型。 汽车轮胎模型
  • 还在古法编程?免费使用AI编程助手OpenCode 与完全本地化配置
  • springboot+vue二手物品交易boot代码--毕业论文
  • 【重装linux系统后安装docker】
  • 【kiro】-----Spec模式实战( 新项目、复杂功能、大型重构、高可靠需求)保姆级教程
  • 什么是公共DNS地址?
  • 打工人必备!手把手教你用“天天记工时”搞定工资条,再也不怕算错钱!
  • 大模型为什么要量化?量化有哪些技术
  • 【多 Agent 协作系统】架构模式:中心化 vs 去中心化 vs 混合——三种架构的深度对比与选型指南!
  • 工业互联网IOT平台介绍(二):工业协议
  • 计算机毕业设计源码:Python电商订单数据可视化分析系统 Django框架 可视化 数据分析 电商 商品 大数据 大模型 deepseek agent 算法优化(建议收藏)✅
  • 一个人就是一支队伍?专知智库OPC研究院发布白皮书:定义下一个经济纪元
  • 网络安全副业实战宝典:从技术人到商业思维转变,一篇收藏够用
  • 2026年KTV家具定制厂靠谱排名,如何选择适合的品牌? - 工业品网
  • LLM判断检索文档能否回答问题的探索
  • 探讨国际高中价格和性价比,为上海学生推荐靠谱学校 - 工业推荐榜
  • 2026创业新机遇:零基础上手,用UniApp+TP6打造你的“同城探探”
  • 喝酱酒不花冤枉钱,这3款性价比吊打同价位
  • Python IDE配置lumapi
  • 泪目了!黑白照片一键变彩色,老回忆瞬间有了温度
  • 【保姆级教程】OpenClaw Skill 指南:从零开始打造你的专属 AI 助手
  • 创友财税,您身边靠谱的帐税管家