9种纯CSS3人物信息卡片UI设计效果

所属分类:UI-悬停

 65023  783  查看评论 (9)
分享到微信朋友圈
X
9种纯CSS3人物信息卡片UI设计效果 ie兼容10

这是一组纯CSS3人物信息卡片UI设计效果。这组人物信息卡片共9种效果,每种效果在鼠标滑过卡片时,通过CSS3使图片和HTML元素变形生成 非常漂亮的鼠标滑过动画特效。

使用方法

HTML结构

该人物信息卡片的基本HTML结构如下:

<div class="single-member effect-3">
  <div class="member-image">
    <img src="demo.jpg" alt="">
  </div>
  <div class="member-info">
    <h3>标题</h3>
    <h5>子标题</h5>
    <p>描述信息...</p>
    <div class="social-touch">
      <a class="fb-touch" href="#"></a>
      <a class="tweet-touch" href="#"></a>
      <a class="linkedin-touch" href="#"></a>
    </div>
  </div>
</div>

CSS样式

为卡片添加一些通用样式:

.single-member{
  width: 280px; 
  float: left; 
  font-family: sans-sarif; 
  margin: 30px 2.5%; 
  background-color: #fff; 
  text-align: center; 
  position: relative;
}
.member-image img{
  max-width: 100%; 
  vertical-align: middle;
}
h3 {
  font-size: 24px; 
  font-weight: normal; 
  margin: 10px 0 0; 
  text-transform: uppercase;
}
h5 {
  font-size: 16px; 
  font-weight: 300; 
  margin: 0 0 15px; 
  line-height: 22px;
}
p {font-size: 14px; 
  font-weight: 300; 
  line-height: 22px; 
  padding: 0 30px; 
  margin-bottom: 10px;
}
.social-touch a{
  display: inline-block; 
  width: 27px; 
  height: 26px; 
  vertical-align: middle; 
  margin: 0 2px; 
  background-image: url(images/social-icons.png); 
  background-repeat: no-repeat; 
  opacity: 0.7; 
  transition: 0.3s;
}
.social-touch a:hover{
  opacity: 1; 
  transition: 0.3s;
}
.fb-touch{
  background-position: 0 0;
}
.tweet-touch{
  background-position: -35px 0;
}
.linkedin-touch{
  background-position: -71px 0;
}
.icon-colored .fb-touch{
  background-position: 0 -27px;
}
.icon-colored .tweet-touch{
  background-position: -35px -27px;
}
.icon-colored .linkedin-touch{
  background-position: -71px -27px;
}

第三种效果的CSS代码如下:

.effect-3{
  max-height: 302px; 
  min-height: 302px; 
  overflow: hidden;
}
.effect-3 h3{
  padding-top: 7px; 
  line-height: 33px;
}
.effect-3 .member-image{
  border-bottom: 5px solid #e5642b; 
  transition: 0.4s; 
  height: 212px; 
  width: 100%; 
  display: inline-block; 
  float: none; 
  vertical-align: middle;
}
.effect-3 .member-info{
  transition: 0.4s;
}
.effect-3 .member-image img{
  width: 100%; 
  vertical-align: bottom;
}
.effect-3 .social-touch{
  background-color: #e5642b; 
  float: left; 
  left: 0; 
  bottom: 0; 
  overflow: hidden; 
  padding: 5px 0; 
  width: 100%; 
  transition: 0.4s;
}
.effect-3:hover .member-image{
  border-bottom: 0; 
  border-radius: 0 0 50px 50px; 
  height: 81px; 
  display: inline-block; 
  overflow: hidden; 
  width: 109px; 
  transition: 0.4s;
}

         

其它效果的CSS代码请参考下载文件。


相关插件-悬停

jQuery hover时实现浮动

以简单的实现hover是的效果,加入了延时误操作处理鼠标快速滑过不会被触发。
  悬停
 34908  409

jQuery仿梦幻西游指针特效

梦幻西游指针图标和水波特效
  悬停
 26648  334

图片添加遮罩

根据鼠标进入的位置插入遮罩
  悬停
 33911  425

C3经过动效

各种C3鼠标经过动效
  悬停
 33416  497

讨论这个项目(9)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

    天山飞雨 0
    2019/3/28 10:05:42
    666 感谢楼主不错的分享 回复
    莫莫 0
    2018/12/17 7:48:39
    Out of my mind 0
    2018/8/6 16:14:18
    无妄 0
    2018/7/26 10:20:57
    感谢分享 ~~~ 回复
    田里的稻草人- 0
    2018/2/23 14:17:05
    爱是永恒 0
    2017/10/25 15:09:25

    谢谢楼主的分享

    回复
    在路上*** 0
    2017/4/26 16:26:14
    懒懒熊 0
    2016/10/28 8:10:39
    感谢楼主的分享! 回复
    静静的 0
    2016/8/10 9:08:29
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复