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

css3 hover border 流动效果

 

 

/* Hover 边线流动 */.hoverDrawLine {border: 0 !important;position: relative;border-radius: 5px;--border-color: #60daaa;
}
.hoverDrawLine::before,
.hoverDrawLine::after {box-sizing: border-box;content: '';position: absolute;border: 2px solid transparent;border-radius: 5px;width: 0;height: 0;
}
.hoverDrawLine::before {top: 0;left: 0;-webkit-transition: height 0.25s ease-out 0.5s, width 0.25s ease-out 0.75s,border-color 0s ease-in-out 1s;transition: height 0.25s ease-out 0.5s, width 0.25s ease-out 0.75s,border-color 0s ease-in-out 1s;
}
.hoverDrawLine::after {bottom: 0;right: 0;-webkit-transition: height 0.25s ease-out 0s, width 0.25s ease-out 0.25s,border-color 0s ease-in-out 0.5s;transition: height 0.25s ease-out 0s, width 0.25s ease-out 0.25s,border-color 0s ease-in-out 0.5s;
}.hoverDrawLine:hover::before,
.hoverDrawLine:hover::after {width: 100%;height: 100%;
}
.hoverDrawLine:hover::before {border-top-color: var(--border-color);border-right-color: var(--border-color);-webkit-transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;
}
.hoverDrawLine:hover::after {border-bottom-color: var(--border-color);border-left-color: var(--border-color);-webkit-transition: width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;transition: width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;
}
<div class="hoverDrawLine"></div>

http://www.lryc.cn/news/110854.html

相关文章:

  • jdk安装
  • utf8mb4_general_ci 和utf8mb4_unicode_ci有什么异同,有什么优劣
  • java实现钉钉群机器人@机器人获取信息后,机器人回复(机器人接收消息)
  • ffmpeg转码时出现missing picture in access unit with size 14019
  • 以Llama-2为例,在生成模型中使用自定义StoppingCriteria
  • servlet接受参数和乱码问题
  • 2023-08-05力扣今日三题
  • webpack图片压缩
  • JPA使用nativeQuery自定义SQL怎么插入一个对象参数呢?
  • 用C语言构建一个数字识别卷积神经网络
  • 【CSS】圆形放大的hover效果
  • work weekly
  • Mac端口扫描工具
  • 如何隐藏开源流媒体EasyPlayer.js视频H.265播放器的实时录像按钮?
  • Spring Cloud Eureka 和 zookeeper 的区别
  • Golang之路---04 并发编程——信道/通道
  • 【Rust 基础篇】Rust派生宏:自动实现trait的魔法
  • PHP8的程序结构-PHP8知识详解
  • Spring Cloud +UniApp 智慧工地云平台源码,智能监控和AI分析系统,危大工程管理、视频监控管理、项目人员管理、绿色施工管理
  • “科创中国”青百会轮值主席吴甜:以大语言模型为代表的AI将引发产业变革
  • 【Git /Github】知识学习
  • 【雕爷学编程】Arduino动手做(181)---Maixduino AI开发板2
  • PHP 编译问题PEAR package PHP_Archive not installed的解决
  • 【探索Linux】—— 步步学习强大的命令行工具 P.1(Linux简介)
  • STM32 CubeMX USB_OCO(USB_转串口)
  • 使用JProfiler进入JVM分析
  • 高级web前端开发工程师的职责说明(合集)
  • powerdesigner各种字体设置;preview字体设置;sql字体设置
  • MyBatis查询数据库(4)
  • Python3 处理PDF之PyMuPDF 入门