限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

CSS实现的鼠标悬停触发显示隐藏DIV元素

所属分类: 网页特效-动画效果    2024-01-14 09:23:28

CSS实现的鼠标悬停触发显示隐藏DIV元素 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

CSS实现的鼠标悬停触发显示隐藏DIV元素(共4个文件)

    • index.html

使用方法

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #eee;
  font-family: "Roboto", sans-serif;
  background: #dfe4ea;
}
body .container {
  width: 300px;
  font-size: 1.2em;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 6px 6px 24px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
body .container .box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 80px;
  padding: 0px 20px;
  transition: all 0.3s;
  color: white;
}
body .container .box.box1 {
  background-color: #7986CB;
}
body .container .box.box2 {
  background-color: #FF8A65;
}
body .container .box.box3 {
  background-color: #F06292;
}
body .container .box.box4 {
  background-color: #4DB6AC;
}
body .container .box .name {
  order: -1;
}
body .container .box .name h4, body .container .box .name h5 {
  font-weight: 300;
}
body .container .box .name h5 {
  font-size: 0em;
  line-height: 1.5;
}
body .container .box:before {
  content: "";
  height: 0px;
  width: 0px;
  border: 2px solid white;
  border-radius: 50%;
  margin-right: -50%;
  background-color: white;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
body .container .box.box1:before, body .container .box.box3:before {
  background-image: url("../img/011-girl.png");
}
body .container .box.box2:before, body .container .box.box4:before {
  background-image: url("../img/163807.png");
}
body .container .box:hover:before {
  content: "";
  height: 50px;
  width: 50px;
  border-radius: 50%;
  margin-right: 0%;
  transition: all 0.4s;
}
body .container .box:hover {
  height: 120px;
  transition: all 0.3s;
}
body .container .box:hover .name h5 {
  font-size: 0.7em;
  transition: all 0.6s;
}

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

javascript+css3倾斜变形表单美化飞来动画特效

一款3D卷纸表单选择飞入动画特效,书单从右边以放大的形式旋转出现,包括每一条颜色的渐变,勾选框的过度动画。
  动画效果
 578  0

纯CSS3实现的模糊灯光背景动画特效

一款动态的背景动画效果,基于blob动画及--_gap和--_color创建的动画背景。
  动画效果
 986  0

js+css滚动页面触发emoji表情变化动画特效

一款滚动触发表情笑脸动画特效,使用CSS和JavaScript在滚动页面时改变人脸的情绪。鼠标滚动页面时,emoji表情的眼睛、嘴巴和其他部位会随之变化。
  动画效果
 1226  0

html5情人节爱心背景动画特效

一款canvas鼠标跟随爱心背景动画,无数的红色小爱心随机显示,淡出淡入,还跟随鼠标轨迹进行涟漪显现。
  动画效果
 6283  0

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

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论