css实现炫酷六边形图像边框走光动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现炫酷六边形图像边框走光动画效果代码

代码标签: css 炫酷 六边形 图像 边框 走光 动画

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

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

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

  
  
<style>
@property --c {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 110%;
}

@property --c2 {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@keyframes credits {
  to {
    --c: -10%;
    --c2: 1;
  }
}

:root {
  --primary: #00fcff;
  --secondary: #ff00e1;
}

.avatar {
  width: 30vmin;
  aspect-ratio: 1;
  animation: credits 3s linear infinite;
  clip-path: var(-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0