css酷炫边框

news/2024/7/3 7:48:13

边框一
在这里插入图片描述

.leftClass {
    background: #000;
    /* -webkit-animation: twinkling 1s infinite ease-in-out; 1秒钟的开始结束都慢的无限次动画 */
}
.leftClass::before {
  content: "";
  width: 104%;
  height: 102%;
  border-radius: 8px;
  background-image: linear-gradient(
    var(--rotate)
    , #1e2ce7, #0a0f90 43%, #03035a);
  position: absolute;
  z-index: -1;
  top: -1%;
  left: -2%;
  animation: spin 2.5s linear infinite;
}
.leftClass::after {
    position: absolute;
  content: "";
  top: calc(var(--card-height) / 6);
  left: 0;
  right: 0;
  z-index: -1;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  transform: scale(0.8);
  filter: blur(calc(var(--card-height) / 6));
  background-image: linear-gradient(
    var(--rotate)
    ,#1e2ce7, #0a0f90 43%, #03035a);
    opacity: 1;
  transition: opacity .5s;
  animation: spin 2.5s linear infinite;
}
.leftClass:hover {
  color: rgb(88 199 250 / 100%);
  transition: color 1s;
}
.leftClass:hover:before, .leftClass:hover:after {
  animation: none;
  opacity: 0;
}
边框二


```cpp
.leftClass {
    width: 32%;
    height: auto;
     -webkit-animation: twinkling 1s infinite ease-in-out; 
}
@-webkit-keyframes twinkling{	
                0% {
                    border-color: #240eea;
                    box-shadow: 0 0 10px rgba(29, 84, 237, 0.2), inset 0 0 10px rgba(13, 63, 201, 0.1), 0 1px 0 rgb(51, 68, 153);
                }
                100% {
                    border-color: rgb(44, 15, 206);
                    box-shadow: 0 0 25px rgba(29, 84, 237,.6), inset 0 0 15px rgba(13, 63, 201, 0.4), 0 1px 0 rgb(36, 21, 174);
                }
            }

边框三
在这里插入图片描述

div {
    position: relative;
    border: 1px solid #03A9F3;
    
    &::before,
    &::after {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
    }
    
    &::before {
        top: -5px;
        left: -5px;
        border-top: 1px solid var(--borderColor);
        border-left: 1px solid var(--borderColor);
    }
    
    &::after {
        right: -5px;
        bottom: -5px;
        border-bottom: 1px solid var(--borderColor);
        border-right: 1px solid var(--borderColor);
    }
    
    &:hover::before,
    &:hover::after {
        width: calc(100% + 9px);
        height: calc(100% + 9px);
    }
}


   

边框四
在这里插入图片描述

.leftClass {
    width:300px;
    height: 500px;
  border: 2px solid #00a1ff;
  border-radius: 8px;
  box-shadow: rgba(0, 253, 219, 0.5) 0px 0px 20px inset;
    background: linear-gradient(to left, #00fd15, #00fd15) left top no-repeat,
    linear-gradient(to bottom, #00fd15, #00fd15) left top no-repeat,
    linear-gradient(to left, #00fd15, #00fd15) right top no-repeat,
    linear-gradient(to bottom, #00fd15, #00fd15) right top no-repeat,
    linear-gradient(to left, #00fd15, #00fd15) left bottom no-repeat,
    linear-gradient(to bottom, #00fd15, #00fd15) left bottom no-repeat,
    linear-gradient(to left, #00fd15, #00fd15) right bottom no-repeat,
    linear-gradient(to left, #00fd15, #00fd15) right bottom no-repeat;
    background-size: 0.5px 10px, 10px 1px, 1px 10px, 10px 1px;
}
.leftClass::before {
  position: absolute;
  content: "";
  top: -2px;
  bottom: -2px;
  left: 30px;
  width: calc(100% - 60px);
  border-top: 2px solid #016886;
  border-bottom: 2px solid #016886;
  z-index: 0;
}
.leftClass::after {
  position: absolute;
  content: "";
  top: 30px;
  right: -2px;
  left: -2px;
  height: calc(100% - 60px);
  border-right: 2px solid #016886;
  border-left: 2px solid #016886;
  z-index: 0;
}

边框五 流星(边框看着是动起来的)
在这里插入图片描述

<div>
	   <i class="top"></i><i class="bottom"></i>
</div>
.leftClass {
    width: 32%;
    height: auto;
    border: 1px solid #121f71;
    overflow: hidden;



    
    i {
      position: absolute;
      display: inline-block;
      height: 4px;
      width: 100%;
    }
    .bottom {
      bottom: 0;
      left: -100%;
      background-image: linear-gradient(
        270deg,
        transparent,
        #74efff,
        transparent
      );
      animation: one 4s linear 1s infinite;
    }
    .top {
      top: 0;
      right: -100%;
      background-image: linear-gradient(
        270deg,
        transparent,
        #74efff,
        transparent
      );
      animation: three 4s linear 3s infinite;
    }
}
.leftClass::before {
      content: ' ';
      position: absolute;
      width: 4px;
      height: 100%;
      top: -100%;
      left: 0;
      background-image: linear-gradient(
        0deg,
        transparent,
        #74efff,
        transparent
      );
      animation: two 4s linear infinite;
    }
    .leftClass::after {
      content: ' ';
      position: absolute;
      width: 4px;
      height: 100%;
      bottom: -100%;
      right: 0;
      background-image: linear-gradient(
        360deg,
        transparent,
        #74efff,
        transparent
      );
      animation: four 4s linear 2s infinite;
    }

    @keyframes one {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}
 
@keyframes two {
  0% {
    top: -100%;
  }
  50%,
  100% {
    top: 100%;
  }
}
 
@keyframes three {
  0% {
    right: -100%;
  }
  50%,
  100% {
    right: 100%;
  }
}
 
@keyframes four {
  0% {
    bottom: -100%;
  }
  50%,
  100% {
    bottom: 100%;
  }
}

其他好看的
https://www.php.cn/faq/484335.html


http://lihuaxi.xjx100.cn/news/2139391.html

相关文章

抖音快手直播录屏+无水印下载视频V3.6

抖音快手直播录屏无水印下载视频更新最新版本V3.6 下载&#xff1a;https://download.csdn.net/download/m0_66047725/88978976 更多资源下载&#xff1a;关注我。

VSCode - 离线安装扩展python插件教程

1&#xff0c;下载插件 &#xff08;1&#xff09;首先使用浏览器打开 VSCode 插件市场link &#xff08;2&#xff09;进入插件主页&#xff0c;点击右侧的 Download Extension 链接&#xff0c;将离线安装包下载下来&#xff08;文件后缀为 .vsix&#xff09; 2&#xff0c;…

Windows系统搭建TortoiseSVN客户端并实现无公网IP访问内网服务端

文章目录 前言1. TortoiseSVN 客户端下载安装2. 创建检出文件夹3. 创建与提交文件4. 公网访问测试 前言 TortoiseSVN是一个开源的版本控制系统&#xff0c;它与Apache Subversion&#xff08;SVN&#xff09;集成在一起&#xff0c;提供了一个用户友好的界面&#xff0c;方便用…

wireshark数据流分析-学习日记day1

参考内容&#xff1a; 网址hxxp://194.55.224[.]9/liuz/5/fre.php描述Loki Bot C2 网址早在 2023-08-15 就被注意到了2023-07-27 记录的 IcedID C2 域&#xff1a; vrondafarih[.]com - HTTP trafficmagiketchinn[.]com - HTTPS trafficmagizanqomo[.]com - HTTPS traffic 网…

uniapp 开发之原生Android插件

开发须知 在您阅读此文档时&#xff0c;我们假定您已经具备了相应Android应用开发经验&#xff0c;使用Android Studio开发过Android原生。也应该对HTML,JavaScript,CSS等有一定的了解, 并且熟悉在JavaScript和JAVA环境下的JSON格式数据操作等。 为了插件开发者更方便快捷的开…

运筹学经典问题(八):CVRP和VRP-TW

文章目录 问题描述问题建模决策变量数学建模基于容量的消除子环的约束 &#xff08;load-based SECs&#xff09; CVRP完整的数学模型加上时间窗限制的CVRP 问题描述 给定一个图&#xff0c;图上的点代表客户&#xff0c;边代表客户之间的路线&#xff0c;边的权重代表客户之间…

Android Room的使用

简介 Room是Google提供的ORM&#xff08;对象关系映射&#xff09;库&#xff0c;简单介绍一下ORM&#xff0c;我们使用的编程语言是面向对象语言&#xff0c;而使用的数据库是关系型数据库&#xff0c;将面向对象的语言和面向关系的数据库之间建立一种映射关系&#xff0c;就…

【WPF应用27】C#中的Slider控件详解与应用示例

在C#的WPF&#xff08;Windows Presentation Foundation&#xff09;应用程序中&#xff0c;Slider控件是一种非常有用的用户界面元素&#xff0c;它允许用户通过拖动滑块在一定范围内选择值。Slider控件不仅可以用于简单的范围选择&#xff0c;还可以与数值显示绑定&#xff0…