最近抖音很火的让你会计算机的朋友给你做个爱心突然火了,我也不出意外的收到了朋友的邀请,自己做肯定太麻烦了于是乎百度第一步,惊呆了!网上全都是一个爱心,变着法的火焰爱心,换汤不换药,那我们肯定是要整点不一样的咯

  首先要表达出我们的中心,是个爱心,其次是简单,再加点动画过渡大功告成!朋友后面跟我得瑟说别人的爱心都一样,还以为我们只能做一种爱心哈哈哈,虽然没有那个炫酷,但这是咱手工打造的“不撞衫”嘛

<html>

<head>
<style>
* {
margin: 0;
padding: 0;
color: #FFF;
} html,
body {
width: 100%;
height: 100%;
} body {
background: linear-gradient(to top, #09203f 0%, #537895 100%);
} .box {
position: absolute;
top: 200px;
right: 0;
left: 0;
margin: auto;
width: 300px;
height: 300px;
} h1 {
text-align: center;
} .heart {
position: relative;
font-size: 0;
width: 138px;
margin: 50px auto;
} .heart>div {
position: absolute;
top: -5px;
width: 10px;
height: 10px;
border-radius: 5px;
} .h-line-4 {
animation: h-line-move-4 3.8s infinite;
} .h-line-3,
.h-line-5 {
animation: h-line-move-3 3.8s infinite;
} .h-line-2,
.h-line-6 {
animation: h-line-move-2 3.8s infinite;
} .h-line-1,
.h-line-7 {
animation: h-line-move-1 3.8s infinite;
} .h-line-0,
.h-line-8 {
animation: h-line-move-0 3.8s infinite;
} .h-line-0 {
left: 0px;
animation-delay: 0s;
background-color: #3cba92;
filter: hue-rotate(20deg);
} .h-line-1 {
left: 17px;
animation-delay: 0.15s;
background-color: #3cba92;
filter: hue-rotate(40deg);
} .h-line-2 {
left: 34px;
animation-delay: 0.3s;
background-color: #3cba92;
filter: hue-rotate(60deg);
} .h-line-3 {
left: 51px;
animation-delay: 0.45s;
background-color: #3cba92;
filter: hue-rotate(80deg);
} .h-line-4 {
left: 68px;
animation-delay: 0.6s;
background-color: #3cba92;
filter: hue-rotate(100deg);
} .h-line-5 {
left: 85px;
animation-delay: 0.75s;
background-color: #3cba92;
filter: hue-rotate(120deg);
} .h-line-6 {
left: 102px;
animation-delay: 0.9s;
background-color: #3cba92;
filter: hue-rotate(140deg);
} .h-line-7 {
left: 119px;
animation-delay: 1.05s;
background-color: #3cba92;
filter: hue-rotate(160deg);
} .h-line-8 {
left: 136px;
animation-delay: 1.2s;
background-color: #3cba92;
filter: hue-rotate(180deg);
} @keyframes h-line-move-4 { 0%,
10%,
90%,
100% {
height: 10px;
top: -5px;
} 45%,
55% {
height: 94px;
top: -23px;
}
} @keyframes h-line-move-3 { 0%,
10%,
90%,
100% {
height: 10px;
top: -5px;
} 45%,
55% {
height: 90px;
top: -31px;
}
} @keyframes h-line-move-2 { 0%,
10%,
90%,
100% {
height: 10px;
top: -5px;
} 45%,
55% {
height: 80px;
top: -37px;
}
} @keyframes h-line-move-1 { 0%,
10%,
90%,
100% {
height: 10px;
top: -5px;
} 45%,
55% {
height: 60px;
top: -31px;
}
} @keyframes h-line-move-0 { 0%,
10%,
90%,
100% {
height: 10px;
top: -5px;
} 45%,
55% {
height: 30px;
top: -15px;
}
}
</style>
</head> <body>
<div class="box">
<h1>为爱冲锋的勇士!<br />值得所有人尊重!</h1>
<div class="heart">
<div class="h-line-0"></div>
<div class="h-line-1"></div>
<div class="h-line-2"></div>
<div class="h-line-3"></div>
<div class="h-line-4"></div>
<div class="h-line-5"></div>
<div class="h-line-6"></div>
<div class="h-line-7"></div>
<div class="h-line-8"></div>
</div>
</div>
</body> </html>

  看成品

  

  

不一样的纯H5C3动画爱心的更多相关文章

  1. 8个超炫酷的纯CSS3动画及源码分享

    在现代网页中,我们已经越来越习惯使用大量的CSS3元素,而现在的浏览器也基本都支持CSS3,所以很多时候我们不妨思考一下是否可以用纯CSS3制作一些有趣或者实用的网页.本文要分享8个超炫酷的纯CSS3 ...

  2. 纯CSS3动画:一棵跳舞的树

    <!DOCTYPE html><head><meta http-equiv="Content-Type" content="text/htm ...

  3. 8个超震撼的HTML5和纯CSS3动画源码

    HTML5和CSS3之所以强大,不仅因为现在大量的浏览器的支持,更是因为它们已经越来越能满足现代开发的需要.Flash在几年之后肯定会消亡,那么HTML5和CSS3将会替代Flash.今天我们要给大家 ...

  4. 11个超震撼的HTML5和纯CSS3动画源码

    1.jQuery多功能手风琴个人信息菜单面板 这是一款基于jQuery的手风琴个人信息菜单面板,每一个菜单项展开后可以自定义布局,因此可以为每一个菜单项实现多功能.类似这样的多功能菜单还有jQuery ...

  5. H5C3动画

    1 渐变 /* 渐变:不同颜色之间的柔和过渡 线性渐变:沿着某条直线发生渐变效果 注意:渐变准备来说是一张背景图 语法:linear-gradient */ background-image: lin ...

  6. 【翻译】西川善司的「实验做出的游戏图形」「GUILTY GEAR Xrd -SIGN-」中实现的「纯卡通动画的实时3D图形」的秘密,后篇

    http://www.4gamer.net/games/216/G021678/20140714079/     连载第2回的本回,  Arc System Works开发的格斗游戏「GUILTY G ...

  7. 【翻译】西川善司「实验做出的游戏图形」「GUILTY GEAR Xrd -SIGN-」中实现的「纯卡通动画的实时3D图形」的秘密,前篇(2)

    Lighting和Shading(2)镜面反射的控制和模拟次级表面散射技术 http://www.4gamer.net/games/216/G021678/20140703095/index_2.ht ...

  8. 36纯 CSS 动画原理,在页面上表现日蚀现象

    原文地址:https://segmentfault.com/a/1190000015070543 感想: 动画,背景颜色 HTML code: <div class="sky" ...

  9. 5种漂亮的纯CSS3动画按钮特效

    这次我们要来分享一款很不错的CSS3按钮动画,这款CSS3按钮一共有5种动画方式,每一种都是鼠标滑过动画形式,虽然这些动画按钮不是十分华丽,但是小编觉得不像其他按钮那样很难扩展,我们可以修改CSS代码 ...

随机推荐

  1. Java开发学习(二十九)----Maven依赖传递、可选依赖、排除依赖解析

    现在的项目一般是拆分成一个个独立的模块,当在其他项目中想要使用独立出来的这些模块,只需要在其pom.xml使用<dependency>标签来进行jar包的引入即可. <depende ...

  2. eBackup备份服务器安装及配置

    ####### 原博客地址 创建虚拟机 选择第一个 分配硬盘 其余默认 导入压缩包安装eBackup备份软件 用户名root 密码Cloud12#$ 查看ip地址 连接xftp导入包 安装备份软件 # ...

  3. LFS(Linux From Scratch)构建过程全记录(三):下载所需的软件包

    写在前面 本文将记录构建LFS的过程中,下载软件包的全过程 准备下载的路径 注意请确保$LFS已经设置完毕 我们需要创建一个文件夹,地址为$LFS/sources,用于保存对应的源码 输入的指令如下: ...

  4. 《Win10——如何设置开机自启动项》

    Win10--如何设置开机自启动项       1. 为需要自启动的程序创建快捷方式. 2. Win+R输入"shell:startup",按下回车键出现一个文件夹. 3. 将快捷 ...

  5. MySQL8.0报错:Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

    MySQL8.0.16版本中新增了一个system_user帐户类型,当新增用户并赋予权限时 mysql> create user 'proxysql'@'192.168.20.%' ident ...

  6. Containerd教程

    文档是从B站有关视频上对应找到的,具体视频地址是:https://www.bilibili.com/video/BV1XL4y1F7QB?p=21&spm_id_from=333.880.my ...

  7. filebeat直接给es传输日志,自定义索引名

    ElasticStack从2019年1月29日的6.6.0版本的开始,引入了索引生命周期管理的功能,新版本的Filebeat则默认的配置开启了ILM,导致索引的命名规则被ILM策略控制. 加上这个配置 ...

  8. 启动elasticsearch报错解决

    说不定以后会不定期更新该文档 1.提示文件描述符数量太少,修改/etc/security/limits.conf文件,添加. * soft nofile 65537 * hard nofile 655 ...

  9. Elasticsearch实现类Google高级检索

    文章转载自: https://mp.weixin.qq.com/s?__biz=MzI2NDY1MTA3OQ==&mid=2247483914&idx=1&sn=436f814 ...

  10. Fluentd部署详解

    Fluentd系统配置项 https://www.cnblogs.com/sanduzxcvbnm/p/13920972.html Fluentd自身日志 https://www.cnblogs.co ...