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

wordpress importer星链seo管理

wordpress importer,星链seo管理,阅读的网站建设需要多少钱,网站建设与管理专业人才调研【css酷炫效果】纯CSS实现粒子旋转动画 缘创作背景html结构css样式完整代码效果图 想直接拿走的老板,链接放在这里:https://download.csdn.net/download/u011561335/90492008 缘 创作随缘,不定时更新。 创作背景 刚看到csdn出活动了&…

【css酷炫效果】纯CSS实现粒子旋转动画

  • 创作背景
  • html结构
  • css样式
  • 完整代码
  • 效果图

想直接拿走的老板,链接放在这里:https://download.csdn.net/download/u011561335/90492008

创作随缘,不定时更新。

创作背景

刚看到csdn出活动了,赶时间,直接上代码。

html结构

	<div id="particle-container" class='particle-container'></div>

css样式

/* 基本样式重置 */
body, html {margin: 0;padding: 0;width: 100%;height: 100%;overflow: hidden; /* 防止滚动条出现 */background-color: #000; /* 设置背景颜色为黑色 */
}/* 粒子容器 */
.particle-container {position: relative;width: 100%;height: 100%;pointer-events: none; /* 使容器内的粒子不影响鼠标事件 */
}/* 粒子样式 */
.particle-container::before,
.particle-container::after,
.particle {content: '';position: absolute;top: 50%;left: 50%;width: 2px;height: 2px;background-color: rgba(255, 255, 255, 0.8); /* 设置粒子颜色为白色,带有一定的透明度 */border-radius: 50%;box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* 添加一些模糊效果 */animation: particleAnimation 5s infinite ease-in-out;pointer-events: none;
}/* 使用伪元素生成一些粒子 */
.particle-container::before,
.particle-container::after {width: 4px;height: 4px;
}/* 使用大量类生成更多粒子 */
.particle:nth-child(1) { top: 5%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 15%; left: 20%; animation-delay: 0.2s; }
.particle:nth-child(3) { top: 25%; left: 30%; animation-delay: 0.4s; }/* 粒子动画关键帧 */
@keyframes particleAnimation {0% {transform: translate(-50%, -50%) rotate(0deg);opacity: 1;}100% {transform: translate(-50%, -50%) rotate(360deg) translate(200px, -200px);opacity: 0;}
}

完整代码

<!DOCTYPE html>
<html lang="en"> 
<head><title>页面特效</title>
<style type="text/css">
/* 基本样式重置 */
body, html {margin: 0;padding: 0;width: 100%;height: 100%;overflow: hidden; /* 防止滚动条出现 */background-color: #000; /* 设置背景颜色为黑色 */
}/* 粒子容器 */
.particle-container {position: relative;width: 100%;height: 100%;pointer-events: none; /* 使容器内的粒子不影响鼠标事件 */
}/* 粒子样式 */
.particle-container::before,
.particle-container::after,
.particle {content: '';position: absolute;top: 50%;left: 50%;width: 2px;height: 2px;background-color: rgba(255, 255, 255, 0.8); /* 设置粒子颜色为白色,带有一定的透明度 */border-radius: 50%;box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* 添加一些模糊效果 */animation: particleAnimation 5s infinite ease-in-out;pointer-events: none;
}@keyframes particleAnimation {0% {transform: translate(-50%, -50%) rotate(0deg);opacity: 1;}100% {transform: translate(-50%, -50%) rotate(360deg) translate(200px, -200px);opacity: 0;}
}</style></head>
<body><h1 style='color:red;'>斗破苍穹!</h1><div id="particle-container" class='particle-container'></div></body><script>const container = document.getElementById('particle-container');const numberOfParticles = 100;setInterval(function(){for (let i = 0; i < numberOfParticles; i++) {const particle = document.createElement('div');particle.classList.add('particle');particle.style.top = Math.random() * 95+ 'vh';particle.style.left = Math.random() * 95+ 'vw';particle.style.animationDelay = Math.random() * 5 * 0.4+`s`;particle.style.width = (Math.floor(Math.random() * 4) + 1)+`px`;particle.style.height = Math.floor(Math.random() * 4) + 1+`px`;container.appendChild(particle);}},3000);</script></html>

效果图

在这里插入图片描述

http://www.dtcms.com/wzjs/314900.html

相关文章:

  • tp5被黑做的网站全变成首页阿里指数官方网站
  • 如何建立的网站能争钱小红书seo关键词优化多少钱
  • 沧州建设网站杭州seo外包服务
  • 网站建站网站怎么样河南郑州网站推广优化
  • 如何建立自己的商城网站广州企业推广
  • 做网站该读啥重庆seo建站
  • 公司网站建设行业怎么样百度网站大全旧版
  • 临沂网站制作企业电商项目策划书
  • 我的世界搞头怎么做的视频网站教育培训班
  • 美食网站建设合同范例福州排名seo公司
  • 什么软件做网站好百度推广系统营销平台
  • 免费网站服务商脑白金网络营销
  • 简速做网站石家庄关键词排名首页
  • 开发网站怎样注册公司口碑营销的概念是什么
  • 天津电力建设公司网站中文搜索引擎排名
  • 霸州市建设局网站最近一个月的热点事件
  • 网站运营方案案例怎么快速推广自己的产品
  • 劳务派遣做网站的好处刷网站排名软件
  • 云南省建设厅网站 农民工新东方考研培训机构官网
  • 网站如何做se优化大师有必要花钱吗
  • 书香气的域名做网站7月新闻大事件30条
  • 佛山网站建设公司排行深圳优化排名公司
  • 网站开发技术试验教程网址查询域名解析
  • 动态网站开发全流程图q群排名优化软件
  • 服务公司网站建设湖人队最新消息
  • 政府网站必须做等保厦门关键词排名提升
  • 建设淘宝网站北仑seo排名优化技术
  • 怎么才能注册网站百度指数搜索热度排行
  • 珠海微网站建设成都网络推广中联无限
  • 企业网站找私人做什黑帽seo技术有哪些