1 Star 0 Fork 397

Plaid/html_css_demo

forked from YanH/html_css_demo 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
87.html 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>逼真的玻璃卡片悬停效果</title>
<link rel="stylesheet" href="../css/87.css">
</head>
<body>
<div class="container">
<div class="card">
<div class="content">
<h2>01</h2>
<h3>Card One</h3>
<p>Realistic glass card hover effect, realistic glass card hover effect, realistic glass card hover effect.</p>
<a href="#">Read More</a>
</div>
</div>
<div class="card">
<div class="content">
<h2>02</h2>
<h3>Card Two</h3>
<p>Realistic glass card hover effect, realistic glass card hover effect, realistic glass card hover effect.</p>
<a href="#">Read More</a>
</div>
</div>
<div class="card">
<div class="content">
<h2>03</h2>
<h3>Card Three</h3>
<p>Realistic glass card hover effect, realistic glass card hover effect, realistic glass card hover effect, realistic glass card hover effect.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
<script src="../js/vanilla-tilt.js"></script>
<script>
// vanilla-tilt.js是一个平滑的3D倾斜JS库,具体参数配置度娘可查到
VanillaTilt.init(document.querySelectorAll(".card"),{
max: 15, //最大倾斜度数
speed: 400, //倾斜转换的速度
glare: true, //是否开启眩光效果
"max-glare": 1 //最大眩光的不透明度
})
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/plaidweb/html_css_demo.git
git@gitee.com:plaidweb/html_css_demo.git
plaidweb
html_css_demo
html_css_demo
master

搜索帮助