纯CSS实现鼠标悬停图片上时显示button按钮效果

所属分类: 网页特效-图片特效&上传    2023-11-28 11:58:19

 91.9K  6  查看评论 (4)
纯CSS实现鼠标悬停图片上时显示button按钮效果 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

纯CSS实现鼠标悬停图片上时显示button按钮效果(共3个文件)

    • index.html

使用方法

body{
   display: block !important;
    background: linear-gradient(to right, #7f7fd5, #86a8e7, #91eae4) !important;
}
.card{
  position: relative;
  min-height: 300px;
  width: 500px;
  margin: 50px auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
}

.card:hover .overlay {
  display: block;
  background: rgba(0, 0, 0, .3);
}

.card img {
  position: absolute;
  width: 500px;
  height: 300px;
  left: 0;
}

.title {
  position: absolute;
  width: 500px;
  left: 0;
  top: 120px;
  font-weight: 700;
  font-size: 30px;
  text-align: center;
  text-transform: uppercase;
  color: white;
  z-index: 1;
  transition: top .5s ease;
}

.card:hover .title {
  top: 90px;
}

.button {
  position: absolute;
  width: 500px;
  left:0;
  top: 180px;
  text-align: center;
  opacity: 0;
  transition: opacity .35s ease;
}

.button a {
  width: 200px;
  padding: 12px 48px;
  text-align: center;
  color: white;
  border: solid 2px white;
  z-index: 1;
}

.card:hover .button {
  opacity: 1;
}

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 图片特效&上传

jquery上传图片picEdit插件

支持上传图片、获取摄像头的上传插件,可以粘贴图片直接显示预览。
  图片特效&上传
 3783  0

jquery图片拼成的3D立方体旋转动画特效代码

一款无线循环滚动的3D图片立方体特效,鼠标悬停于某一面上时,自动变为透明色,其它面突出显示。
  图片特效&上传
 2666  0

jquery支持倍数图片放大特效插件

一款带进度条设置放大倍数代码,进度条数值越大,放大效果更明显!
  图片特效&上传
 4704  0

jquery放大镜商品图片预览插件

一款网上商城网站常见的图片切换插件,鼠标悬停滑过缩略图时,即可浏览大图的细节部分。还支持图片相册浏览,鼠标点击大图全屏弹出大图,可左右切换。
  图片特效&上传
 6661  0

评论数(4) 回复有机会获得K币 用户协议

    铁头de科技0
    2024-01-17 12:52:46
    何处不逢杨0
    2024-01-10 14:53:32
    kuliwa0
    2023-12-16 13:39:15
    great0
    2023-12-07 20:13:37
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论