html5 文字转换烟花,HTML5交互式烟花(点击并保持)
CSS
语言:
CSSSCSS
确定
body {
display: flex;
margin: 0;
height: 100vh;
justify-content: center;
align-items: center;
font-size: 50px;
font-family: monospace;
background: #000;
color: #333;
/* filter: blur(2px) contrast(30); */
}
body:before {
content: 'Click and hold';
}
.explosion {
position: absolute;
top: 50%;
left: 50%;
width: 10px;
height: 10px;
}
.explosion div {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: crimson;
border-radius: 500px;
animation-fill-mode: forwards;
transform-origin: left center;
}
.explosion div:nth-child(1) {
animation: explode1 .3s;
transform: rotate(0) translate(0, 0);
}
.explosion div:nth-child(2) {
animation: explode2 .3s;
transform: rotate(45deg) translate(0, 0);
}
.explosion div:nth-child(3) {
animation: explode3 .3s;
transform: rotate(90deg) translate(0, 0);
}
.explosion div:nth-child(4) {
animation: explode4 .3s;
transform: rotate(135deg) translate(0, 0);
}
.explosion div:nth-child(5) {
animation: explode5 .3s;
transform: rotate(180deg) translate(0, 0);
}
.explosion div:nth-child(6) {
animation: explode6 .3s;
transform: rotate(225deg) translate(0, 0);
}
.explosion div:nth-child(7) {
animation: explode7 .3s;
transform: rotate(270deg) translate(0, 0);
}
.explosion div:nth-child(8) {
animation: explode8 .3s;
transform: rotate(315deg) translate(0, 0);
}
@keyframes explode1 {
0 {
width: 100%;
transform: rotate(0) translate(0, 0);
}
50% {
width: 400%;
transform: rotate(0) translate(0, 0);
}
100% {
width: 100%;
transform: rotate(0) translate(300%, 0);
}
}
@keyframes explode2 {
0 {
width: 100%;
transform: rotate(45deg) translate(0, 0);
}
50% {
width: 400%;
transform: rotate(45deg) translate(0, 0);
}
100% {
width: 100%;
transform: rotate(45deg) translate(300%, 0);
}
}
@keyframes explode3 {
0 {
width: 100%;
transform: rotate(90deg) translate(0, 0);
}
50% {
width: 400%;
transform: rotate(90deg) translate(0, 0);
}
100% {
width: 100%;
transform: rotate(90deg) translate(300%, 0);
}
}
@keyframes explode4 {
0 {
width: 100%;
transform: rotate(135deg) translate(0, 0);
}
50% {
width: 400%;
transform: rotate(135deg) translate(0, 0);
}
100% {
width: 100%;
transform: rotate(135deg) translate(300%, 0);
}
}
@keyframes explode5 {
0 {
width: 100%;
transform: rotate(180deg) translate(0, 0);
}
50% {
width: 400%;
transform: rotate(180deg) translate(0, 0);
}
100% {
width: 100%;
transform: rotate(180deg) translate(300%, 0);
}
}
@keyframes explode6 {
0 {
width: 100%;
transform: rotate(225deg) translate(0, 0);
}
50% {
width: 400%;
transform: rotate(225deg) translate(0, 0);
}
100% {
width: 100%;
transform: rotate(225deg) translate(300%, 0);
}
}
@keyframes explode7 {
0 {
width: 100%;
transform: rotate(270deg) translate(0, 0);
}
50% {
width: 400%;
transform: rotate(270deg) translate(0, 0);
}
100% {
width: 100%;
transform: rotate(270deg) translate(300%, 0);
}
}
@keyframes explode8 {
0 {
width: 100%;
transform: rotate(315deg) translate(0, 0);
}
50% {
width: 400%;
transform: rotate(315deg) translate(0, 0);
}
100% {
width: 100%;
transform: rotate(315deg) translate(300%, 0);
}
}
html5 文字转换烟花,HTML5交互式烟花(点击并保持)相关推荐
- html5 文字转换烟花,用HTML5制作烟火效果的教程
要过年了,过年想到的就是放烟火啦....于是就用canvas写了个放烟火的效果,鼠标点击也会产生烟火,不过不要产生太多烟火哦,一个烟火散出的粒子是30到200个之间,当页面上的粒子数量达到一定的时候, ...
- html5 矩阵转换,功能HTML5矩阵变换
我正在试图让如何绘制在HTML5对象时,但在信息的多个不同来源找到了不同的解释已经引起了一些混乱做矩阵变换的理解.我发现信息说,为了在html5中创建绘制对象的动画,如here所示,同时我也看到可以通 ...
- html显示和隐藏文字特效,14款震撼人心的HTML5文字特效
1.CSS3五彩文字特效 文字带阴影效果 这是一款非常具有卡通形象的CSS3五彩文字特效,虽然没有迷人的动画效果,但是五彩缤纷的文字展现在屏幕上也是非常酷的,再加上每一个文字都有不同角度的阴影效果,加 ...
- ae制h5文字动画_14款震撼人心的HTML5文字特效
本文作者html5tricks,转载请注明出处 今天我们向大家精选了14款震撼人心的 1.CSS3五彩文字特效 文字带阴影效果 这是一款非常具有卡通形象的CSS3五彩文字特效,虽然没有迷人的动画效果, ...
- html5微信语音转文字,文字转换语音软件:我有个朋友不会识字 怎么能把微信上别人发给他的文字转换成语音...
平时喜欢看书的小伙伴一定想拥有一个文字转换语音软件,看书看久了容易造成疲劳的感觉,如果能把文字转语音用设备播放出来那就是最轻松滴.再者随着交友软件的兴起,我们和父辈祖辈间的交流也用起了软件,有的老人家 ...
- html5怎么做成五行五列,word将文字转换成五行五列的表格怎么做
在Word 2007文档中,用户可以很容易地将文字转换成表格.其中关键的操作是使用分隔符号将文本合理分隔.Word 2007能够识别常见的分隔符,例如段落标记(用于创建表格行).制表符和逗号(用于创建 ...
- flash如何转html5,闪客精灵如何将Flash格式转换成HTML5
如何将Flash格式转换成HTML5?闪客精灵就是为Flash格式转换为HTML5而生的,他能够快速的将任何Flash文件,不管是SWF还是EXE格式的Flash格式转换成能被HTML5识别的HTML ...
- html简单的文字自动出现效果,8个华丽的HTML5文字动画特效赏析
文字是网页的灵魂,很早以前有人发明了很多漂亮的计算机字体,这让网页变得样式各异.HTML5和CSS3的出现,我们可以让文字变得更加富有个性,在一些需要的场合,我们甚至可以利用HTML5制作文字动画.本 ...
- ae制h5文字动画_对于8个华丽的HTML5文字动画特效图文赏析
文字是网页的灵魂,很早以前有人发明了很多漂亮的计算机字体,这让网页变得样式各异.HTML5和CSS3的出现,我们可以让文字变得更加富有个性,在一些需要的场合,我们甚至可以利用HTML5制作文字动画.本 ...
最新文章
- WebAssembly + Dapr = 下一代云原生运行时?
- 实验二 二叉树的操作与实现
- Python爬虫的框架有哪些?推荐这五个!
- 计算机s1,计算机S0、S1、S2、S3、S4、S5状态
- vscode配置python 控制台/终端/TERMINAL 不输出/不显示 解决办法
- android 朋友圈弹出框,Android popupwidown 实现朋友圈评论弹窗显示在软键盘上面
- SMB扫描-Server Message Block 协议、nmap
- 基于Xamarin移动测试云测试你的Android/iOS移动应用
- 平面设计banner排版技巧哪些比较实用
- 超详细的Windows新装机流程(自装Windows系统、设置BIOS等)
- 用go编写区块链系列之7--网络
- 2018——广东工业大学校赛题解
- 汇金蛛:推荐在家0成本,有营养的副业兼职
- java 最短遍历路径_凯文培根游戏的最短路径图遍历
- Vue组件传值——兄弟组件传值
- 深度技术ghost win8 32位/64位装机旗舰版V2014
- 第二章练习题(2):计算圆柱面积和体积
- H3C 不同版本登录认证配置
- 利用Python进行数据分析:电子书
- 关于[No mapping found for HTTP request with URI]的问题解决方法