div+css实现彩色渐变边框悬浮动画效果代码

代码语言:html

所属分类:悬停

代码描述:div+css实现彩色渐变边框悬浮动画效果代码

代码标签: div css 彩色 渐变 边框 悬浮 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
/**
 * `@property` is required for the animation to work.
 * Without it, the angle values won’t interpolate properly.
 *
 * @see https://dev.to/afif/we-can-finally-animate-css-gradient-kdk
 */
@property --bg-angle {
  inherits: false;
  initial-value: 0deg;
  syntax: "<angle>";
}

/**
 * To animate the gradient, we set the custom property to 1 full
 * rotation. The ani.........完整代码请登录后点击上方下载按钮下载查看

网友评论0