<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>css3点击出现不同颜色涟漪特效</title> <meta name="keywords" content=" css3点击出现不同颜色涟漪特效 " /> <meta name="description" content=" css3点击出现不同颜色涟漪特效 " /> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .ripple{ position:absolute; width:100vmax; height:100vmax; top:-50vmax; left:-50vmax; border-radius:50%; } body{ overflow:hidden; } .pad{ position:absolute; left:0; right:0; top:0; bottom:0; } </style> </head> <body> <!-- touch or click --> <div></div> <script src="js/index.js"></script> </body> </html> Css部分: .ripple{ position:absolute; width:100vmax; height:100vmax; top:-50vmax; left:-50vmax; border-radius:50%; } body{ overflow:hidden; } .pad{ position:absolute; left:0; right:0; top:0; bottom:0; }
Css3点击显示涟漪特效就这么多了,更多精彩请关注Gxl网其它相关文章!
相关阅读:
CSS3怎么制作蝴蝶飞舞的动画
怎样用canvas实现小球和鼠标的互动
怎样用canvas做出粒子喷泉动画的效果
声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com