Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
The Hills
by David Marcu
The Forest
by Jay Mantri
The Desert
by Keith Hardy
The Ocean
by Dan Stark
css
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; background: #e4e4e4; } .container { display: grid; grid-template-rows: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr); grid-gap: 30px; } figure.card { position: relative; width: 380px; height: 240px; background-image: var(--image-src); background-position: 50% 50%; background-size: 125%; transition: background 400ms ease; box-shadow: 0 6.7px 5.3px rgba(0, 0, 0, 0.03), 0 22.3px 17.9px rgba(0, 0, 0, 0.05), 0 100px 80px rgba(0, 0, 0, 0.07); overflow: hidden; } figure.card:hover figcaption { transform: translateY(0px); } figure.card--1:hover { background-position: 50% 100%; } figure.card--1 figcaption { bottom: 0; transform: translateY(80px); } figure.card--2 { background-size: 110%; } figure.card--2:hover { background-position: 50% -100%; } figure.card--2 figcaption { top: 0; transform: translateY(-80px); } figure.card--3 { background-size: 115%; } figure.card--3:hover { background-position: -100% 50%; } figure.card--3 figcaption { left: 0; transform: translateX(-180px); } figure.card--4:hover { background-position: 100% 50%; } figure.card--4 figcaption { right: 0; transform: translateX(180px); } figure.card--1 figcaption, figure.card--2 figcaption { width: 100%; height: 80px; padding: 15px 20px; } figure.card--3 figcaption, figure.card--4 figcaption { flex-direction: column; width: 180px; height: 100%; padding: 20px 15px; } figure.card figcaption { display: flex; justify-content: space-between; align-items: center; position: absolute; background: #282828; transition: transform 400ms ease; } figure.card figcaption .info { color: #e2e2e2; font-family: "Montserrat"; } figure.card figcaption .info h3 { font-size: 1.2rem; letter-spacing: 1px; margin-bottom: 2px; } figure.card figcaption .info span { color: #72cc60; font-size: 0.85rem; } figure.card figcaption .links { display: flex; justify-content: end; align-items: center; } figure.card figcaption .links a { text-decoration: none; position: relative; width: 35px; height: 35px; display: flex; justify-content: center; align-items: center; color: #fff; margin-left: 10px; font-size: 1.2rem; opacity: 0.65; border-radius: 50%; overflow: hidden; } figure.card figcaption .links a:hover { opacity: 1; } figure.card figcaption .links a:focus { outline: none; } figure.card figcaption .links a:focus::after { transform: scale(1); opacity: 1; } figure.card figcaption .links a::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 50%; opacity: 0; background: rgba(255, 255, 255, 0.05); transform: scale(0.5); z-index: -1; transition: all 150ms ease; } @media only screen and (max-width: 900px) { body { align-items: start; } .container { grid-template-rows: repeat(4, 1fr); grid-template-columns: 1fr; grid-gap: 40px; padding: 80px 0; } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>卡片悬停交互 HTML 和 CSS-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号