选项卡切换效果
代码语言:html
所属分类:选项卡
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>- Tabs - CSS + JS</title> <style> @import url("https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,400i|IBM+Plex+Sans+Condensed:400,400i|IBM+Plex+Sans:100,100i,400,400i,700,700i|IBM+Plex+Serif:400,400i"); /* main 1*/ /* main 2*/ /* neutral 1*/ /* neutral 2*/ body { background-color: #2e2e2e; font-family: "IBM Plex Sans", sans-serif; margin: 0; } .about { @import url("https://fonts.googleapis.com/css?family=Rubik:300,400"); background-color: #2c303a; width: 100%; min-width: 480px; height: 50px; position: absolute; bottom: 0; color: #888888; display: flex; justify-content: center; align-items: center; font-family: "Rubik", sans-serif; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; font-weight: 300; z-index: 3; border-bottom: solid 1px #131418; } .about a { color: white; margin: 0 5px; padding: 2px 3px; text-decoration: none; position: relative; transition: all 0.3s ease; z-index: 1; display: flex; align-items: center; } .about a:after { content: ""; position: absolute; width: calc(100% - 6px); height: 1px; background-color: #46b7a7; bottom: 0; transition: all 0.3s ease; } .about a:before { content: ""; position: absolute; width: 0; height: 0px; background-color: #46b7a7; right: 0; bottom: 0; transition: all 0.3s 0.3s ease; z-index: -1; } .about a:hover:after { width: 0; left: 0; } .about a:hover:before { width: 100%; height: 100%; left: 0; } .about .one { width: 2px; height: 20px; background-color:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0