div+css实现悬浮立体按钮变形动画效果代码

代码语言:html

所属分类:悬停

代码描述:div+css实现悬浮立体按钮变形动画效果代码

代码标签: div css 悬浮 立体 按钮 变形 动画

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

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

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
button {
  --b: .1em;    /* border thickness */
  --d: 20px;    /* the 3D depth */
  --h: 1.2em;   /* the height */
  --c: #3B8183; /* the color */
  
  --_s: calc(var(--d) + var(--b));
  line-height: var(--h);
  color: #0000;
  text-shadow: 
    0 calc(-1*var(--_t,0em)) var(--c), 
    0 calc(var(--h) - var(--_t,0em)) #fff;
  border: solid #0000;
  overflow: hidden;
  border-width: var(--b) var(--b) var(--_s) var(--_s);
  background:
    linear-gradient(var(--c) 0 0) 100% 100%
     /101% var(--_p,0%) no-repeat,
    conic-gradient(at le.........完整代码请登录后点击上方下载按钮下载查看

网友评论0