图片/图形

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

阿里云


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

HTML 结构

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

也想出现在这里?联系我们
创客主机
  1. <div class="single-member effect-3">
  2.   <div class="member-image">
  3.     <img src="demo.jpg" alt="">
  4.   </div>
  5.   <div class="member-info">
  6.     <h3>标题</h3>
  7.     <h5>子标题</h5>
  8.     <p>描述信息...</p>
  9.     <div class="social-touch">
  10.       <a class="fb-touch" href="#"></a>
  11.       <a class="tweet-touch" href="#"></a>
  12.       <a class="linkedin-touch" href="#"></a>
  13.     </div>
  14.   </div>
  15. </div>

CSS 样式

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

  1. .single-member{
  2.   width: 280px; 
  3.   float: left; 
  4.   font-family: sans-sarif; 
  5.   margin: 30px 2.5%; 
  6.   background-color: #fff; 
  7.   text-align: center; 
  8.   position: relative;
  9. }
  10. .member-image img{
  11.   max-width: 100%; 
  12.   vertical-align: middle;
  13. }
  14. h3 {
  15.   font-size: 24px; 
  16.   font-weight: normal; 
  17.   margin: 10px 0 0; 
  18.   text-transform: uppercase;
  19. }
  20. h5 {
  21.   font-size: 16px; 
  22.   font-weight: 300; 
  23.   margin: 0 0 15px; 
  24.   line-height: 22px;
  25. }
  26. p {font-size: 14px; 
  27.   font-weight: 300; 
  28.   line-height: 22px; 
  29.   padding: 0 30px; 
  30.   margin-bottom: 10px;
  31. }
  32. .social-touch a{
  33.   display: inline-block; 
  34.   width: 27px; 
  35.   height: 26px; 
  36.   vertical-align: middle; 
  37.   margin: 0 2px; 
  38.   background-image: url(images/social-icons.png); 
  39.   background-repeat: no-repeat; 
  40.   opacity: 0.7; 
  41.   transition: 0.3s;
  42. }
  43. .social-touch a:hover{
  44.   opacity: 1; 
  45.   transition: 0.3s;
  46. }
  47. .fb-touch{
  48.   background-position: 0 0;
  49. }
  50. .tweet-touch{
  51.   background-position: -35px 0;
  52. }
  53. .linkedin-touch{
  54.   background-position: -71px 0;
  55. }
  56. .icon-colored .fb-touch{
  57.   background-position: 0 -27px;
  58. }
  59. .icon-colored .tweet-touch{
  60.   background-position: -35px -27px;
  61. }
  62. .icon-colored .linkedin-touch{
  63.   background-position: -71px -27px;
  64. }

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

  1. .effect-3{
  2.   max-height: 302px; 
  3.   min-height: 302px; 
  4.   overflow: hidden;
  5. }
  6. .effect-3 h3{
  7.   padding-top: 7px; 
  8.   line-height: 33px;
  9. }
  10. .effect-3 .member-image{
  11.   border-bottom: 5px solid #e5642b; 
  12.   transition: 0.4s; 
  13.   height: 212px; 
  14.   width: 100%; 
  15.   display: inline-block; 
  16.   float: none; 
  17.   vertical-align: middle;
  18. }
  19. .effect-3 .member-info{
  20.   transition: 0.4s;
  21. }
  22. .effect-3 .member-image img{
  23.   width: 100%; 
  24.   vertical-align: bottom;
  25. }
  26. .effect-3 .social-touch{
  27.   background-color: #e5642b; 
  28.   float: left; 
  29.   left: 0; 
  30.   bottom: 0; 
  31.   overflow: hidden; 
  32.   padding: 5px 0; 
  33.   width: 100%; 
  34.   transition: 0.4s;
  35. }
  36. .effect-3:hover .member-image{
  37.   border-bottom: 0; 
  38.   border-radius: 0 0 50px 50px; 
  39.   height: 81px; 
  40.   display: inline-block; 
  41.   overflow: hidden; 
  42.   width: 109px; 
  43.   transition: 0.4s;
  44. }

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

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

已有 447 人购买
  • brtq
查看演示升级 VIP立刻购买

演示地址 下载地址
收藏
(0)

发表回复

热销模板

Ashade - 作品展示摄影相册WordPress汉化主题
LensNews

本站承接 WordPress / PbootCMS / DedeCMS 等
系统建站、仿站、开发、定制等业务!