js+css实现液态瀑布流冲刷按钮悬浮动画效果代码
代码语言:html
所属分类:动画
代码描述:js+css实现液态瀑布流冲刷按钮悬浮动画效果代码
代码标签: js css 液态 瀑布流 冲刷 按钮 悬浮 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } .container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } nav { width: 200px; height: 245px; z-index: 50; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } button { width: 100%; height: 50px; transition: .3s; position: relative; color: white; margin-bottom: 5px; font-size: 14px; background-color: black; border: none; outline: none; background: black; } button::before { content: ''; outline: none; border: none; width: 100%; height: 50px; line-height: 50px; position: absolute; top: 0; left: 0; transition: .3s; background: rgba(0,0,0,1); } button:nth-child(1)::before { content: 'HOME'; } button:nth-child(2)::before { content: 'PROJECTS'; } button:nth-child(3)::before { content: 'CONTACT'; } button:nth-child(4)::before { content: 'ABOUT'; } button:nth-child(5)::before { content: 'HIRE ME'; } button:hover::before { transform: translateX(-50px); } .mainBlock { width: 100%; min-width: 500px; height: 270px; margin-left: 347px; top: 0; border: 3px solid black; position: absolute; padding: 38px 60px; backgr.........完整代码请登录后点击上方下载按钮下载查看
网友评论0