Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
15 min
Recipe
Crisp Spanish tortilla Matzo brei
by
Celeste Mills
5 min
Travel
Discover the sea
by
John Doe
css
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:100,300,400,700'); @import url('https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'); *{ box-sizing: border-box; } body, html { font-family: 'Roboto Slab', serif; margin: 0; width: 100%; height: 100%; padding: 0; } body { background-color: #1F1F1F; display: flex; display: -webkit-flex; -webkit-justify-content: center; -webkit-align-items: center; justify-content: center; align-items: center; } .cards { width: 100%; display: flex; display: -webkit-flex; justify-content: center; -webkit-justify-content: center; max-width: 820px; } .card--1 .card__img, .card--1 .card__img--hover { background-image: url('https://images.unsplash.com/photo-1542826438-bd32f43d626f?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80'); } .card--2 .card__img, .card--2 .card__img--hover { background-image: url('https://images.unsplash.com/photo-1560275619-4662e36fa65c?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80'); } .card__like { width: 18px; } .card__clock { width: 15px; vertical-align: middle; fill: #AD7D52; } .card__time { font-size: 12px; color: #AD7D52; vertical-align: middle; margin-left: 5px; } .card__clock-info { float: right; } .card__img { visibility: hidden; background-size: cover; background-position: center; background-repeat: no-repeat; width: 100%; height: 235px; border-top-left-radius: 12px; border-top-right-radius: 12px; } .card__info-hover { position: absolute; padding: 16px; width: 100%; opacity: 0; top: 0; } .card__img--hover { transition: 0.2s all ease-out; background-size: cover; background-position: center; background-repeat: no-repeat; width: 100%; position: absolute; height: 235px; border-top-left-radius: 12px; border-top-right-radius: 12px; top: 0; } .card { margin-right: 25px; transition: all .4s cubic-bezier(0.175, 0.885, 0, 1); background-color: #fff; width: 33.3%; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0px 13px 10px -7px rgba(0, 0, 0,0.1); } .card:hover { box-shadow: 0px 30px 18px -8px rgba(0, 0, 0,0.1); transform: scale(1.10, 1.10); } .card__info { z-index: 2; background-color: #fff; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; padding: 16px 24px 24px 24px; } .card__category { font-family: 'Raleway', sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: 2px; font-weight: 500; color: #868686; } .card__title { margin-top: 5px; margin-bottom: 10px; font-family: 'Roboto Slab', serif; } .card__by { font-size: 12px; font-family: 'Raleway', sans-serif; font-weight: 500; } .card__author { font-weight: 600; text-decoration: none; color: #AD7D52; } .card:hover .card__img--hover { height: 100%; opacity: 0.3; } .card:hover .card__info { background-color: transparent; position: relative; } .card:hover .card__info-hover { opacity: 1; }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>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号