文字悬浮散开动画效果

代码语言:html

所属分类:悬停

代码描述:文字悬浮散开动画效果

代码标签: 动画 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap" rel="stylesheet">
<style>
@-webkit-keyframes fat {
  from {
    font-variation-settings: "wght" 0, "wdth" 0;
  }
  to {
    font-variation-settings: "wght" 700, "wdth" 150;
  }
}
@keyframes fat {
  from {
    font-variation-settings: "wght" 0, "wdth" 0;
  }
  to {
    font-variation-settings: "wght" 700, "wdth" 150;
  }
}
.top {
  position: fixed;
  top: 0;
  width: 100%;
  text-align: center;
}

body {
  font-family: "Oswald";
  font-size: 3vw;
  line-height: 1.4em;
  margin: 0 2em;
  background-color: white;
  color: white;
  font-feature-settings: "kern" on;
  -moz-font-feature-settings: "kern" on;
  -webkit-font-feature-settings: "kern" on;
  -ms-font-feature-settings: "kern" on;
  -o-font-feature-settings: "kern" on;
  height: 100vh;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
          flex-direction: column;
  justify-content: space-around;
  background: black;
}

h1 {.........完整代码请登录后点击上方下载按钮下载查看

网友评论0