div+css实现炫酷图标菜单悬浮伸缩弹出动画效果代码
代码语言:html
所属分类:菜单导航
代码描述:div+css实现炫酷图标菜单悬浮伸缩弹出动画效果代码
代码标签: div css 炫酷 图标 菜单 悬浮 伸缩 弹出 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <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; } body { background: #002642; } .wrapper { position: absolute; top: 50%; left: 45%; transform: translate(-50%, -50%); } ul { list-style: none; } ul li { width: 50px; height: 50px; position: relative; background: #e59500; margin: 10px 0; cursor: pointer; box-shadow: 0 0 5px rgba(236, 177, 69, 0.8); } ul li .fa { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; color: #002642; } .slider { content: ""; position: absolute; top: 0; left: 51px; width: 0px; height: 50px; background: #eebb5c; transition: all 0.5s 0.2s ease; } .slider p { font-family: arial; text-transform: uppercase; font-size: 16px; font-weight: 900; color: #002642; text-align: center; line-height: 50px; opacity: 0; transition: all 0.8s ease; } ul li:hover .slider { width: 180px; transition: all 0.5s ease; } ul li:hover .slider p { opacity: 1; transition: all.........完整代码请登录后点击上方下载按钮下载查看
网友评论0