css实现按钮鼠标悬停背景光效动画效果代码

代码语言:html

所属分类:悬停

代码描述:css实现按钮鼠标悬停背景光效动画效果代码

代码标签: css 按钮 鼠标 悬停 背景 光效 动画

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

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

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

  <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap" rel="stylesheet">

  
  
<style>
@property --pos-x {
  syntax: "<percentage>";
  initial-value: 11.14%;
  inherits: false;
}
@property --pos-y {
  syntax: "<percentage>";
  initial-value: 140%;
  inherits: false;
}
@property --spread-x {
  syntax: "<percentage>";
  initial-value: 150%;
  inherits: false;
}
@property --spread-y {
  syntax: "<percentage>";
  initial-value: 180.06%;
  inherits: false;
}
@property --color-1 {
  syntax: "<color>";
  initial-value: #000;
  inherits: false;
}
@property --color-2 {
  syntax: "<color>";
  initial-value: #08012C;
  inherits: false;
}
@property --color-3 {
  syntax: "<color>";
  initial-value: #4E1E40;
  inherits: false;
}
@property --color-4 {
  syntax: "<color>";
  initial-value: #70464E;
  inherits: false;
}
@property --color-5 {
  syntax: "<color>";
  initial-value: #88394C;
  inherits: false;
}
@property --stop-1 {
  syntax: "<percentage>";
  initial-value: 37.35%;
  inherits: false;
}
@property --stop-2 {
  syntax: "<percentage>";
  initial-value: 61.36%;
  inherits: false;
}
@property --stop-3 {
  syntax: "<percentage>";
  initial-value: 78.42%;
  inherits: false;
}
@property --stop-4 {
  syntax: "<percentage>";
  initial-value: 89.52%;
  inherits: false;
}
@property --stop-5 {
  syntax: "<percentage>";
  initial-value: 100%;
  inherits: false;
}
bu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0