css3点击显示涟漪特效,怎样用css3做出点击显示涟漪特效,点击显示涟漪的特效需要注意哪些方面?下面给大家做一个案例.
<!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点击显示涟漪特效就这么多了,更多精彩请关注php中文网其它相关文章!
相关阅读:
立即学习“前端免费学习笔记(深入)”;
以上就是css3点击显示涟漪特效的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号