前端 - 那些你不知道的炫酷导航交互效果_个人文章 - SegmentFault 思否
基于上次发布的 那些你不知道的炫酷按钮交互效果 反馈比较好,后续将继续收集那些炫酷的交互效果,希望可以给你的项目添砖加瓦,更上一层楼。那些你不知道的炫酷交互效果系列:那些你不知道的炫酷按钮交互效果那些
顺晟科技
2022-09-13 13:17:29
63
鼠标移入能看到效果
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .d1{width: 200px; height: 200px; background: green; position: relative; overflow: hidden; } .d2{width: 200px; height: 200px; z-index: 1; position: absolute; } .d2:before{content: ""; position: absolute; width: 100%; height: 100%; top: 100%; background: red; z-index: -2; transition: all 0.5S linear;} .d2:hover:before{top: 0%} </style> </head> <body> <div class="d1"> <div class="d2">给我一个渐变的效果</div> </div> </body> </html>
31
2022-10
19
2022-10
07
2022-10
15
2022-09
15
2022-09
15
2022-09