日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

html5 文字转换烟花,HTML5交互式烟花(点击并保持)

發布時間:2025/3/12 HTML 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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);

}

}

與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的html5 文字转换烟花,HTML5交互式烟花(点击并保持)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。