ÕâÊÇÒ»¿îЧ¹û³¬¿áµÄ´¿CSS3Êó±ê»¬¹ýͼƬ¶¯»Ð§¹û£¬Ëü¹²·ÖΪ8×鲻ͬµÄЧ¹û£¬ËüÃÇ·Ö±ðÔÚÊó±ê»¬¹ýͼƬʱ£¬ÒÔ²»Í¬µÄ·½Ê½ÏÔʾÕÚÕÖ²ãºÍͼƬ±êÌ⡣ÿһ×éЧ¹ûÓÖ·ÖΪ3ÖÖ²»Í¬µÄÊó±ê»¬¹ýͼƬЧ¹û¡£
ÕâЩÊó±ê»¬¹ýͼƬʱµÄ¶¯»Ð§¹û¶¼ÊÇʹÓÃCSS3À´Íê³ÉµÄ£¬·Ö±ðÓУº»¬¶¯Ð§¹û£¬ÇãбЧ¹û£¬·×ªÐ§¹û£¬ÐýתЧ¹ûµÈµÈ£¬ÏÂÃæÊÇÒ»ÕÅGIFµÄÔ¤ÀÀͼƬ¡£
ÔÚÏßÔ¤ÀÀ Ô´ÂëÏÂÔØ
ʹÓ÷½·¨ÔÚÒ³ÃæÖÐÒýÈëhover-effects.cssÎļþ¡£
HTML½á¹¹
ÒÔÆäÖÐÒ»ÖÖÊó±ê»¬¹ýͼƬ¶¯»Ð§¹ûΪÀý£¬ËüµÄHTML½á¹¹ÈçÏ£º
Your Title......Learn more
CSSÑùʽ.effect-1{ float: left; width: 340px; position: relative; overflow: hidden; text-align: center; border: 4px solid rgba(255, 255, 255, 0.9); overflow: visible; } .effect-1 img{ transition: 0.5s; } .effect-1:hover img{ transform: scale(0.3) translateY(-110%); position: relative; z-index: 9; } .effect-1 .text-desc{ transform: translateY(100%); opacity: 0; padding: 85px 20px 10px; transition: 0.5s; } .effect-1:hover .text-desc{ transform: translateY(0px); opacity: 1; }
ÆäËüЧ¹ûµÄCSS3ʵÏÖ´úÂëÇë²Î¿¼hover-effects.cssÎļþ¡£
¡¡