web299.com
全部
教育
语言/资格考试
法律
互联网
政务民生
Word模板
Excel模板
PPT模板
网页特效
小程序模板
网站模板
首页
教育
语言/资格考试
法律
互联网
政务民生
Word模板
Excel模板
PPT模板
网页特效
小程序模板
网站模板
当前位置:
首页
>
网页特效
>
动画效果
CSS3商品展示网格布局动画特效
分类:
动画效果
日期:
2024-05-14
点击(0)
评论(0)
演 示
免费下载
简介
##### HTML结构 该CSS3商品展示网格布局的HTML结构如下: ```html
20% Off
Jacket
$45.00
$36.00
......
``` ##### CSS样式 然后添加下面的CSS样式: ```html .product-grid{ text-align: center; } .product-grid .product-image{ overflow: hidden; position: relative; } .product-grid .product-image:before{ content: ""; background: rgba(0,0,0,0.02); position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: 1; } .product-grid .product-image img{ width: 100%; height: auto; } .product-grid .pic-1{ opacity: 1; transform: rotateY(0); transition: all 0.5s ease-out 0s; } .product-grid:hover .pic-1{ opacity: 0; transform: rotateY(-90deg); } .product-grid .pic-2{ position: absolute; top: 0; left: 0; opacity: 0; transform: rotateY(-90deg); transition: all 0.5s ease-out 0s; } .product-grid:hover .pic-2{ opacity: 1; transform: rotateY(0deg); } .product-grid .social{ width: 100%; background: #ededed; padding: 0; margin: 0; list-style: none; position: absolute; bottom: 0; left: 0; opacity: 0; z-index: 1; transition: all 0.5s ease 0s; } .product-grid:hover .social{ opacity: 1; } .product-grid .social li{ display: inline-block; } .product-grid .social li a{ display: block; width: 70px; height: 70px; line-height: 70px; background: #ededed; font-size: 20px; color: #000; transition: all 0.3s ease 0s; } .product-grid .social li a:hover{ background: #fff; color: #d15f21; } .product-grid .discount{ width: 100%; padding: 15px; background: #e4f6ff;; font-size: 18px; font-weight: 700; color: #000; position: absolute; bottom: 0; left: 0; } .product-grid .product-content{ padding: 15px 0; } .product-grid .title{ font-size: 20px; font-weight: 600; color: #000; text-transform: capitalize; margin: 0 0 5px 0; } .product-grid .price{ font-size: 16px; font-weight: 600; color: #d15f21; margin-bottom: 5px; } .product-grid .price span{ display: inline-block; color: #999; text-decoration: line-through; margin-right: 2px; } .product-grid .rating{ padding: 0; margin: 0; list-style: none; } .product-grid .rating li{ display: inline-block; font-size: 10px; color: #ffc000; } @media only screen and (max-width:990px){ .product-grid{ margin-bottom: 30px; } } ```
相关推荐
html5浪漫粒子表白文字特效
SlidesJS幻灯片特效
html5瀑布流相册特效
css3 svg实现的情人节表白鲜花动画特效
t-scroll.js基于ES6的DOM元素,过渡动画库插件
纯js写省市区三级联动效果
广告
广告