gsap实现有回弹效果的文字菜单鼠标悬浮效果代码

代码语言:html

所属分类:菜单导航

代码描述:gsap实现有回弹效果的文字菜单鼠标悬浮效果代码

代码标签: gsap 回弹 文字 菜单 鼠标 悬浮

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

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

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

  
  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Life+Savers:wght@800&display=swap");
html,
body {
  height: 100%;
}

body {
  background-color: #f6dcfc;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

nav {
  display: flex;
  flex-wrap: wrap;
}

text {
  fill: #0568f2;
  font-family: "Life Savers", serif;
  font-weight: 800;
  font-style: normal;
  font-size: 28px;
}

path {
  stroke: #ed5af2;
  stroke-width: 4px;
  fill: none;
  stroke-linecap: round;
}

@media (max-width: 1100px) {
  nav {
    flex-direction: column;
  }
}
</style&.........完整代码请登录后点击上方下载按钮下载查看

网友评论0