react+veloxi实现tab选项卡点击切换滑动动画效果代码

代码语言:html

所属分类:其他

代码描述:react+veloxi实现tab选项卡点击切换滑动动画效果代码

代码标签: react veloxi tab 选项卡 点击 切换 滑动 动画

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

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

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

  
  
<style>
body {
  background: #242424;
  padding: 0;
  margin: 0;
  width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#root {
  width: 100%;
  min-height: 100vh;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs {
  display: flex;
  border-radius: 5px;
  overflow: hidden;
}

.tab {
  background: #f0f0f0;
  font-size: 14px;
  padding: 10px 0;
  color: #444;
  width: 110px;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.underline {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #32b9f8;
}
</style>


  
  
</head>

<body>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/babel.7.18.13.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/react.production.18.2.0.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/react-dom.production.18.2.0.js"></script>

<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/veloxi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0