svg+css实现文字鼠标悬浮折叠堆积动画效果代码

代码语言:html

所属分类:悬停

代码描述:svg+css实现文字鼠标悬浮折叠堆积动画效果代码

代码标签: svg css 文字 鼠标 悬浮 折叠 堆积 动画

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

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

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

  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");
@property --k {
  syntax: "<number>";
  initial-value: 1;
  inherits: true;
}
html, body {
  display: grid;
}

html {
  min-height: 100%;
}

body {
  background: black;
}

svg {
  position: fixed;
}

div {
  --j: (1 - var(--k));
  --d: (1lh - 1ch);
  --o: calc(.5*var(--d));
  place-self: center;
  overflow: hidden;
  position: relative;
  padding: 0 0.5em;
  width: min-content;
  color: #00f;
  font: 700 20vmin/1 anton, sans-serif;
  text-indent: 0.0625em;
  letter-spacing: 0.125em;
  text-align: center;
  text-transform: uppercase;
  clip-path: inset(2px);
  isolation.........完整代码请登录后点击上方下载按钮下载查看

网友评论0