TweenMax实现按钮悬浮弹出选项卡菜单效果代码
代码语言:html
所属分类:菜单导航
代码描述:TweenMax实现按钮悬浮弹出选项卡菜单效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body,html { height:100%; } body { display:flex; justify-content:center; align-items:center; font-family:sans-serif; font-weight:bold; background:linear-gradient(330deg,#a63cf0 40%,#7971ff 100%); overflow:hidden; font-size:14px; flex-direction:column; } ul { list-style-type:none; background:white; padding:15px 25px; display:block; border-radius:60px; } li { display:inline-block; margin:0px 15px; } a { text-decoration:none; color:#9e61f3; display:inline-block; text-align:center; } svg { width:32px; height:32px; display:block; margin:8px auto; fill:#e6ddfd; transition:0.2s ease-in all; } .menu-btn { position:relative; border-radius:50%; width:80px; height:80px; background:white; border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:3px 3px 10px rgba(137,48,239,0.3); } .ring { position:absolute; top:-5px; left:-5px; width:90px; height:90px; background:rgba(255,255,255,0.5); border-radius:50%; -webkit-transform:scale(0.9); transform:scale(0.9); } .menu-btn:focus { outline:none; } .menu-btn >span { height:4px; border-radius:8px; background:#9e61f3; z-index:1; width:30px; -webkit-transform:rotate(90deg); transform:rotate(90deg); position:absolute; } .menu-btn >span:nth-child(.........完整代码请登录后点击上方下载按钮下载查看
网友评论0