css效果

devtools/2024/11/26 6:35:13/

css_0">css炫彩流光圆环效果

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title></title><style>*{margin: 0;padding: 0;}body{width: 100%;height: 100vh;}.container{position: relative;width: 100%;height: 100vh;display: flex;justify-content: center;align-items: center;background-color: #000;}.circle{display: flex;justify-content: center;align-items: center;position: absolute;width: 200px;height: 200px;border-radius: 50%;background-image: linear-gradient(0deg,rgb(47,102,255),rgb(153,64,255) 30%,rgb(238,55,255) 60%,rgb(255,0,76) 100%);animation: rotate 1s linear infinite;}.circle::before{content: "";position: absolute;width: 200px;height: 200px;border-radius: 50%;background-image: linear-gradient(0deg,rgb(47,102,255),rgb(153,64,255) 30%,rgb(238,55,255) 60%,rgb(255,0,76) 100%);filter: blur(35px);}.circle::after{content: "";position: absolute;width: 160px;height: 160px;border-radius: 50%;background: #000;}span{position: absolute;color: #fff;}@keyframes  rotate{0%{transform: rotate(0deg);}100%{transform: rotate(360deg);}}</style></head><body><div class="container"><div class="circle"></div></div></body>
</html>

CSS视频播放3D立方体

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title></title><style>*{margin: 0;padding: 0;box-sizing: border-box;}body{background: #000;}.container{position: relative;width: 100%;height: 100vh;}.container .box{position: absolute;top: calc(50% - 200px );left: calc(50% - 200px );width: 400px;height: 400px;transform-style: preserve-3d;transform: rotateX(-20deg) rotateY(23deg) translate3d(0,0,-12px);}.container .box > div{position: absolute;top: 0;left: 0;width: 100%;height: 100%;transform-style: preserve-3d;}.container .box > div span{position: absolute;top: 0;left: 0;display: block;width: 100%;height: 100%;border: 1px solid rgba(0,0,0,1);background: #ccc;}.container .box > div span video{position: absolute;top: 0;left: 0;width: 100%;height: 100%;object-fit: cover;filter: blur(0);}.container video{position: absolute;top: 0;left: 0;width: 100%;height: 100%;object-fit: cover;filter: blur(20px);}.container .box > div span:nth-child(1){transform: rotateX(0deg) translate3d(0,0,200px);}.container .box > div span:nth-child(2){transform: rotateX(-90deg) translate3d(0,0,-200px);}.container .box > div span:nth-child(2) video{transform: rotateY(180deg);}.container .box > div span:nth-child(3){transform: rotateY(-90deg) translate3d(0,0,200px);}</style></head><body><div class="container"><span><video src="./video.mp4" autoplay="" muted="" loop=""></video></span><div class="box"><div><span><video src="./video.mp4" autoplay="" muted="" loop=""></video></span><span><video src="./video.mp4" autoplay="" muted="" loop=""></video></span><span><video src="./video.mp4" autoplay="" muted="" loop=""></video></span></div></div></div></body>
</html>

CSS水波纹效果

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title></title><style>body{margin: 0;padding: 0;background: #3498db;}.container{position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%) rotateX(70deg);}.ripple{position: fixed;top: 0;transform: translateX(-50%);width: 20px;height: 20px;border-radius: 50%;animation: ripple 4s linear infinite;}.r2{animation-delay: 0.8s;}.r3{animation-delay: 1.6s;}.r4{animation-delay: 2.4s;}.r5{animation-delay: 3.2s;}.r6{animation-delay: 4s;}@keyframes ripple{from{border:4px solid #8e44ad;background: #9b59b670; }to{border: 0px solid #8E44AD;background: #9b59b670;width: 400px;height: 400px;top: 20px;opacity: 0;}}</style></head><body><div class="container"><span class="ripple r1"></span><span class="ripple r2"></span><span class="ripple r3"></span><span class="ripple r4"></span><span class="ripple r5"></span><span class="ripple r6"></span></div></body>
</html>

CSS面条加载效果

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8"><title></title><style>body{margin: 0;padding: 0;background: #2980b9;}.loading{position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);height: 40px;display: flex;align-items: center;}.ogj{width: 6px;height: 40px;background: white;margin: 0 3px;border-radius: 10px;animation: loading 0.8s infinite;}.ogj:nth-child(2){animation-delay: 0.1s;}.ogj:nth-child(3){animation-delay: 0.2s;}.ogj:nth-child(4){animation-delay: 0.3s;}.ogj:nth-child(5){animation-delay: 0.4s;}.ogj:nth-child(6){animation-delay: 0.5s;}.ogj:nth-child(7){animation-delay: 0.6s;}.ogj:nth-child(8){animation-delay: 0.7s;}@keyframes loading{0%{heigth:0;}50%{height: 40px;}100%{height: 0;}}</style></head><body><div class="loading"><div class="ogj"></div><div class="ogj"></div><div class="ogj"></div><div class="ogj"></div><div class="ogj"></div><div class="ogj"></div><div class="ogj"></div><div class="ogj"></div></div></body>
</html>

用CSS写一本书

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title></title><style>*{margin: 0;padding: 0;}body{display: flex;justify-content: center;align-items: center;min-height: 100vh;background: rgb(250,250,250);background-attachment: fixed;background-size: cover;}.book{position: relative;top: 0;width: 400px;height: 600px;background: #fff;transform: rotate(-37.5deg) skewX(10deg);box-shadow: -35px 35px 50px rgba(0,0,0,1);transition: 0.5s;}.book:hover{transform: rotate(-37.5deg) skewX(10deg) translate(20px, -20px);box-shadow: -50px 50px 100px rgba(0,0,0,1);}.book:before{content: '';width: 30px;height: 100%;background: url(https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1588900098&di=b41905c683262ede66a811bc539d8368&src=http://hbimg.b0.upaiyun.com/6fc64b52819c57b640f8d385c87f20ef740e728612a9e-hI3dqx_fw658);position: absolute;top: 0;left: 0;transform: skewY(-45deg) translate(-30px,-15px);box-shadow: inset -10px 0 20px rgba(0,0,0,0.2);}.book:after{content: '';width: 100%;height: 30px;background: #ccc;position: absolute;bottom: 0;left: 0;transform: skewX(-45deg) translate(15px,30px);}.book h2{position: absolute;bottom: 100px;left: 35px;font-size: 5em;line-height: 1em;color: #fff;}.book h2 span{background: url(https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1588900098&di=b41905c683262ede66a811bc539d8368&src=http://hbimg.b0.upaiyun.com/6fc64b52819c57b640f8d385c87f20ef740e728612a9e-hI3dqx_fw658);background-attachment: fixed;-webkit-background-clip: text;-webkit-text-fill-color: transparent;}.book .writer{position: absolute;bottom: 20px;right: 20px;color: #3262626;font-size: 0.6em;padding-top: 5px;font-weight: 500;border-top-left-radius: 1px soild #262626;}.book .writer i{font-weight: 700;}.book .cover{position: absolute;top: 0;left: 0;width: 100%;height: 70%;				background: url(https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1588900098&di=b41905c683262ede66a811bc539d8368&src=http://hbimg.b0.upaiyun.com/6fc64b52819c57b640f8d385c87f20ef740e728612a9e-hI3dqx_fw658);background-size: cover;}</style></head><body><div class="book"><div class="cover"></div><h2>Book</br><span>Mockup</span></h2><span class="writer">Designed By <i>Muhammad Irshad</i></span></div></body>
</html>

CSS彩条加载动画效果

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title></title><style>body{margin: 0;padding: 0;background: #f1f1f1;}.loading{position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%) rotate(75deg);width: 15px;height: 15px;}.loading::before,.loading::after{content: "";position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);width: 15px;height: 15px;border-radius: 15px;animation: loading 1.5s infinite linear;}.loading::before{box-shadow: 15px 15px #e77f67, -15px -15px #778beb;}.loading::after{box-shadow: 15px 15px #f8a5c2, -15px -15px #f5cd79;transform: translate(-50%,-50%) rotate(90deg);}@keyframes loading{50%{height:45px;}}</style></head><body><div class="loading"></div></body>
</html>

CSS彩色动效加载条效果

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title></title><style>body{margin: 0;padding: 0;background: #262626;}ul{position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);margin: 0;padding: 0;display: flex;}ul li{list-style: none;width: 40px;height: 40px;background: #fff;border-radius: 50%;animation: animate 1.6s ease-in-out infinite;}@keyframes animate{0%, 40%, 100%{transform: scale(0.2);}20%{transform: scale(1);}}ul li:nth-child(1){animation-delay: -1.4s;background: #ffff00;box-shadow: 0 0 50px #FFFF00;}ul li:nth-child(2){animation-delay: -1.2s;background: #76ff03;box-shadow: 0 0 50px #76ff03;}ul li:nth-child(3){animation-delay: -1s;background: #f06292;box-shadow: 0 0 50px #f06292;}ul li:nth-child(4){animation-delay: -0.8s;background: #4fc3f7;box-shadow: 0 0 50px #4fc3f7;}ul li:nth-child(5){animation-delay: -0.6s;background: #ba68c8;box-shadow: 0 0 50px #ba68c8;}ul li:nth-child(6){animation-delay: -0.4s;background: #f57c00;box-shadow: 0 0 50px #f57c00;}ul li:nth-child(7){animation-delay: -0.2s;background: #673ab7;box-shadow: 0 0 50px #673ab7;}</style></head><body><ul><li></li><li></li><li></li><li></li><li></li><li></li><li></li></ul></body>
</html>

使用CSS3和Javascript单击时的按钮涟漪效果

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title></title><style>*{margin: 0;padding: 0;}body{display: flex;justify-content: center;align-items: center;min-height: 100vh;flex-direction: column;background: #040d15;}a{position: relative;display: inline-block;padding: 12px 36px;margin: 10px 0;color: #fff;text-decoration: none;text-transform: uppercase;font-size: 18px;letter-spacing: 2px;border-radius: 40px;overflow: hidden;background: linear-gradient(90deg,#0162c8,#55e7fc);}	a:nth-child(2){background: linear-gradient(90deg,#755bea,#ff72c0);}span{position: absolute;background: #fff;transform: translate(-50%, -50%);pointer-events: none;border-radius: 50%;animation: animate 1s linear infinite;}@keyframes animate{0%{width: 0px;height: 0px;opacity: 0.5;}100%{width: 500px;height: 500px;opacity: 0;}}</style></head><body><a href="#">Button</a><a href="#">Button</a></body><script>const button = document.querySelectorAll('a');button.forEach(btn => {btn.addEventListener('click',function(e){let x = e.clientX - e.target.offsetLeft;let y = e.clientY - e.target.offsetTop;let ripples = document.createElement('span');ripples.style.left = x + 'px';ripples.style.top = y + 'px';this.appendChild(ripples);setTimeout(()=>{ripples.remove()},1000)})})</script>
</html>

使用Html和CSS动画效果悬停时发光的渐变按钮动画效果

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title></title></head><style>body{margin: 0;padding: 0;background: #000;}a{position: absolute;top: 50%;	left: 50%;transform: translate(-50%,-50%);width: 200px;height: 60px;text-align: center;line-height: 60px;color: #fff;font-size: 24px;text-transform: uppercase;text-decoration: none;font-family: sans-serif;box-sizing: border-box;background: linear-gradient(90deg,#03a9f4,#f441a5,#ffeb3b,#03a9f4);background-size: 400%;border-radius: 30px;}a:hover{animation:animate 8s linear infinite;}@keyframes animate{0%{background-position: 0%;}100%{background-position: 400%;}}a:before{content: '';position: absolute;top: -5px;left: -5px;right: -5px;bottom: -5px;z-index: -1;background: linear-gradient(90deg,#03a9f4,#f441a5,#ffeb3b,#03a9f4);background-size: 400%;border-radius: 40px;opacity: 0;transition: 0.5s;}a:hover:before{opacity: 1;filter: blur(20px);}</style><body><a href="#">Button</a></body>
</html>

CSS蛇边界创意按钮动画效果

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title></title></head><style>body{margin: 0;padding: 0;background: #0c002b;font-family: sans-serif;}a{position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);color: #1670f0;padding: 30px 60px;font-size: 30px;letter-spacing: 2px;text-transform: uppercase;text-decoration: none;box-shadow:  0 20px 50px rgba(0,0,0,.5);overflow: hidden;}a:before{content: '';position: absolute;top: 2px;left: 2px;bottom: 2px;width: 50%;background: rgba(255,255,255,0.05);}a span:nth-child(1){position: absolute;top: 0;left: 0;width: 100%;height: 2px;background: linear-gradient(to right, #0c002b, #1779ff);animation: animate1 2s linear infinite;}@keyframes animate1{0%{transform: translateX(-100%);}100%{transform: translateX(100%);}}a span:nth-child(2){position: absolute;top: 0;right: 0;width: 2px;height: 100%;background: linear-gradient(to bottom, #0c002b, #1779ff);animation: animate2 2s linear infinite;}@keyframes animate2{0%{transform: translateY(-100%);}100%{transform: translateY(100%);}}a span:nth-child(3){position: absolute;bottom: 0;right: 0;width: 100%;height: 2px;background: linear-gradient(to left, #0c002b, #1779ff);animation: animate3 2s linear infinite;}@keyframes animate3{0%{transform: translateX(100%);}100%{transform: translateX(-100%);}}a span:nth-child(4){position: absolute;top: 0;left: 0;width: 2px;height: 100%;background: linear-gradient(to top, #0c002b, #1779ff);animation: animate4 2s linear infinite;}@keyframes animate4{0%{transform: translateY(100%);}100%{transform: translateY(-100%);}}</style><body><a href="#"><span></span><span></span><span></span><span></span>button</a></body>
</html>

cssloading_849">css页面加载loading动画特效

在这里插入图片描述

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title>加载中loading效果</title></head><style>*{margin: 0;padding: 0;box-sizing: border-box;}body{width: 100%;height: 100vh;background: #222;display: flex;align-items: center;justify-content: center;}.container{display: flex;}.container .point{width: 2em;height: 2em;border-radius: 50%; background: #fff;margin: 1em;user-select: none;position: relative;}.container .point::before{position: absolute;content: '';width: 100%;height: 100%;background: inherit; border-radius: inherit; animation: wave 2.2s ease-out infinite;}@keyframes wave{50%,70% {transform: scale(2.5);}80%,100% {opacity: 0;}}.container .point:nth-child(1){background: #7ef9ff;}.container .point:nth-child(2){background: #89cff0;}.container .point:nth-child(3){background: #4682b4;}.container .point:nth-child(4){background: #0f52ba;}.container .point:nth-child(5){background: #000080;}.container .point:nth-child(1)::before{animation-delay: 0s ;}.container .point:nth-child(2)::before{animation-delay: 0.2s ;}.container .point:nth-child(3)::before{animation-delay: 0.4s ;}.container .point:nth-child(4)::before{animation-delay: 0.6s ;}.container .point:nth-child(5)::before{animation-delay: 0.8s ;}</style><body><div class="container"><div class="point"></div><div class="point"></div><div class="point"></div><div class="point"></div><div class="point"></div></div></body>
</html>

http://www.ppmy.cn/devtools/137046.html

相关文章

【过滤器】一文了解 .NET Core 中各种 Filter

在ASP.NET Core中&#xff0c;Filter&#xff08;过滤器&#xff09;是一种强大的机制&#xff0c;允许你在请求处理管道中的特定阶段运行代码。这些过滤器提供了在请求的不同阶段执行逻辑的能力&#xff0c;比如授权、日志记录、异常处理等。ASP.NET Core 提供了多种类型的过滤…

函数模板(进阶)

机甲为婚纱&#xff0c;银河为殿堂&#xff0c;爆炸为礼炮&#xff0c;见证了只属于他们的婚礼&#xff0c;樱花树下&#xff0c;再续前缘&#xff0c;鹤望兰无凋零之时&#xff0c;比翼鸟永世长存。 我们这一篇博客紧接我们前面的函数模板&#xff08;初阶&#xff09;这一篇博…

《Vue零基础教程》模板和基础语法讲解(4)

1 模板 1) 什么是模板 什么是模板 由Vue解析的HTML字符串 Vue的主要工作 编译模板挂载 2) 如何确定模板 确定模板有几种方式 没有指定template选项, 以容器的innerHTML做为模板指定template选项, 以template选项做为模板指定render选项, 以render函数做为模板 优先级: r…

clickhouse 分片键的重要性

文章目录 背景反思为啥出现问题为啥默认的语义是local 背景 问题背景 详细内容可以看这个 反思为啥出现问题 为啥会出现链接里出现的问题&#xff0c;对于goal join 和 join 语义不一样的问题&#xff0c;那是因为分片键设计不合理的情况 如果表a和表b 都是user_id 作分片键…

通过shell脚本分析部署nginx网络服务

1.接收用户部署的服务名称 read -p "请输入要部署的服务器名称&#xff1a;" service_name 2.判断服务是否安装 ​ 已安装&#xff1b;自定义网站配置路径为/www&#xff1b;并创建共享目录和网页文件&#xff1b;重启服务 ​ 没有安装&#xff1b;安装对应的软件包…

蓝桥杯每日真题 - 第23天

题目&#xff1a;&#xff08;直线&#xff09; 题目描述&#xff08;12届 C&C B组C题&#xff09; 解题思路&#xff1a; 题目理解: 在平面直角坐标系中&#xff0c;从给定的点集中确定唯一的直线。 两点确定一条直线&#xff0c;判断两条直线是否相同&#xff0c;可通过…

Java 基于SpringBoot +Vue的4S 店车辆管理系统(附源码,说明文档,部署)

博主介绍&#xff1a;✌程序员徐师兄、7年大厂程序员经历。全网粉丝12w、csdn博客专家、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java技术领域和毕业项目实战✌ &#x1f345;文末获取源码联系&#x1f345; &#x1f447;&#x1f3fb; 精彩专栏推荐订阅&#x1f447;…

【JavaEE初阶】枫叶经霜艳,梅花透雪香-计算机是如何运行的?

本篇博客给大家带来的是与计算机相关的知识点, 包括:计算机的组成, 指令, 进程(重点). 文章专栏: JavaEE初阶 若有问题 评论区见 欢迎大家点赞 评论 收藏 分享 如果你不知道分享给谁,那就分享给薯条. 你们的支持是我不断创作的动力 . 1. 计算机的组成 1.1 计算机的发展史 计算…