前端 - 那些你不知道的炫酷导航交互效果_个人文章 - SegmentFault 思否
基于上次发布的 那些你不知道的炫酷按钮交互效果 反馈比较好,后续将继续收集那些炫酷的交互效果,希望可以给你的项目添砖加瓦,更上一层楼。那些你不知道的炫酷交互效果系列:那些你不知道的炫酷按钮交互效果那些
顺晟科技
2021-07-31 07:32:07
112
效果如下:
代码如下:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> * { padding:0; margin:0; } #btns { text-align:center; margin-top:20px; } #btns a { display:inline-block; padding:10px 40px; color:#fff; background:#090; background-image:-moz-linear-gradient(#090,#09F); background-image:-webkit-linear-gradient(#090,#09F); background-image:-o-linear-gradient(#090,#09F); background-image:linear-gradient(#090,#09F); -moz-border-radius:4px; -webkit-border-radius:4px; border-radius:4px; font-weight:bold; text-decoration:none; overflow:hidden; position:relative; } #btns a:hover { background:#096; background-image:-moz-linear-gradient(#096,#06c); background-image:-webkit-linear-gradient(#096,#06c); background-image:-o-linear-gradient(#096,#06c); background-image:linear-gradient(#096,#06c); } #btns a:after { content:""; -moz-border-radius:4px 4px 0 0; -webkit-border-radius:4px 4px 0 0; border-radius:4px 4px 0 0; height:50%; width:; background:#fff; display:block; opacity:0.2; position:absolute; left:0; top:0; } </style> </head> <body> <div id="btns"> <a href="http://fenav.xh-css.cn">确定</a> <a href="http://fenav.xh-css.cn">submit</a> <a href="http://fenav.xh-css.cn">submit</a> <a href="http://fenav.xh-css.cn">submit</a> </div> </body> </html>
转自:http://www.w3cfuns.com/thread-5592416-1-1.html
31
2022-10
22
2022-10
19
2022-10
19
2022-10
15
2022-09
15
2022-09