css+js实现带入场动画tab选项卡图文效果代码
代码语言:html
所属分类:选项卡
代码描述:css+js实现带入场动画tab选项卡图文效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: #212428; overflow-x: clip; } ul { list-style: none; } .tabs { width: 80%; height: 100px; margin: auto; margin-top: 50px; display: flex; align-items: center; box-shadow: 10px 10px 19px #1c1e22, -10px -10px 19px #262a2e; overflow: hidden; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; -ms-border-radius: 10px; -o-border-radius: 10px; } .tabs li { background-color: #212327; width: 25%; height: 100%; display: flex; align-items: center; justify-content: center; color: #c4cfde; font-family: 'Poppins', sans-serif; transition: .5s; -webkit-transition: .5s; -moz-transition: .5s; -ms-transition: .5s; -o-transition: .5s; cursor: pointer; } .tabs li:hover { background: linear-gradient(145deg, #1e2024, #23272b); box-shadow: 10px 10px 19px #1c1e22, -10px -10px 19px #262a2e; color: #f9004d; position: relative; z-index: 1; border-radius: 10px; } .active { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0