js+css实现立体图标按钮导航条点击效果代码
代码语言:html
所属分类:加载滚动
代码描述:js+css实现立体图标按钮导航条点击效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 100%; height: 100%; } body { background: #202020; font-family: 'Source Sans Pro', sans-serif; } .buttons-container { position: absolute; margin: auto; top: 0; right: 0; bottom: 0; left: 0; width: 395px; height: 100px; border-radius: 45px; background: #151515; box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.5); } ul { list-style: none; width: inherit; height: inherit; display: flex; align-items: center; justify-content: center; } ul li { display: flex; align-items: center; justify-content: center; margin: 1px; height: 90px; width: 95px; background: #202020; border-top: 1px solid #353535; box-shadow: 0 15px 20px 0 rgba(0, 0, 0, 0.5); transition: all .5s; } ul li:nth-of-type(1) { border-top-left-radius: 40px; border-bottom-left-radius: 40px; } ul li:last-of-type { border-top-right-radius: 40px; border-bottom-right-radius: 40px; } ul li:hover { cursor: pointer; } ul li a { display: inline-block; color: gray; text-decoration: none; font-size: 40px; transition: all .5s; } .created-by { position: absolute; margin: auto; left: 0; right: 0; bottom: 10%; width: 200px; text-align: center; font-size: 10px; letter-spacing: 0.5em; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0