css3图片展示方式
<view class='img_block' id='mjltest'>
<view class='text_view'>
<view class='{{cell_class}}'>
<image src='http://192.168.31.193/images/img0_4_1.png'></image>
</view>
<view class='put_{{cell_class}}'>
<image src='http://192.168.31.193/images/img1_4_1.gif'></image>
</view>
</view>
.img_block {
position: absolute;
width: 590rpx;
height: 590rpx;
text-align: center;
margin: 0 auto;
left: 10%;
}
.img_block .text_view {
position: relative;
background-repeat: no-repeat;
width: 50%;
height: 50%;
}
/*LeftToRight','RightToLetf','TopToBelow','BelowToTop */
.img_block .BelowToTop,.img_block .LeftToRight,.img_block .RightToLetf,.img_block .TopToBelow {
position: absolute;
width: 10%;
height: 100%;
display: block;
}
.img_block .put_BelowToTop,.img_block .put_LeftToRight,.img_block .put_RightToLetf,.img_block .put_TopToBelow {
position: absolute;
width: 90%;
height: 100%;
display: block;
}
image {
width: 100%;
height: 100%;
}
.img_block .LeftToRight {
position: absolute;
-webkit-animation-name: LeftToRight;
animation: LeftToRight 800ms ;
animation-fill-mode:forwards;
}
.img_block .RightToLetf {
position: absolute;
-webkit-animation-name: RightToLetf;
animation: RightToLetf 800ms ;
animation-fill-mode:forwards;
}
.img_block .TopToBelow {
position: absolute;
-webkit-animation-name: TopToBelow;
animation: TopToBelow 800ms ;
animation-fill-mode:forwards;
}
.img_block .BelowToTop {
position: absolute;
-webkit-animation-name: BelowToTop;
animation: BelowToTop 800ms ;
animation-fill-mode:forwards;
}
.img_block .put_LeftToRight {
position: absolute;
-webkit-animation-name: put_LeftToRight;
animation: put_LeftToRight 800ms ;
animation-fill-mode:forwards;
}
.img_block .put_RightToLetf {
position: absolute;
-webkit-animation-name: put_RightToLetf;
animation: put_RightToLetf 800ms ;
animation-fill-mode:forwards;
}
.img_block .put_TopToBelow {
position: absolute;
-webkit-animation-name: put_TopToBelow;
animation: put_TopToBelow 800ms ;
animation-fill-mode:forwards;
}
.img_block .put_BelowToTop {
position: absolute;
-webkit-animation-name: put_BelowToTop;
animation: put_BelowToTop 800ms ;
animation-fill-mode:forwards;
}
/*从左到右显示*/
@keyframes LeftToRight {
0% {
width: 0%;
top: 0px;
}
100% {
width: 100%;
top: 0rpx;
}
}
/*从右到左显示*/
@keyframes RightToLetf {
0% {
width: 0%;
top: 0px;
left:100%;
}
100% {
width: 100%;
top: 0rpx;
left:0%;
}
}
/*从上到下显示*/
@keyframes TopToBelow{
0% {
height: 0%;
width: 100%;
top: 0%;
}
100% {
height: 100%;
width: 100%;
}
}
/*从下到上显示*/
@keyframes BelowToTop{
0% {
height:0%;
width: 100%;
bottom:0%;
}
100% {
height: 100%;
width: 100%;
bottom:0%;
}
}
/* 从左向右移动收起 */
@keyframes put_LeftToRight {
0% {
width: 100%;
top: 0px;
left:0%;
}
100% {
width: 0%;
left: 100%;
}
}
/* 从右到左显示收起*/
@keyframes put_RightToLetf {
0% {
width: 100%;
top: 0px;
right:0%;
}
100% {
width: 0%;
right: 100%;
}
}
/* 从上到下显示收起*/
@keyframes put_TopToBelow{
0% {
height: 100%;
width: 100%;
bottom:0%;
}
100% {
height: 0%;
width: 100%;
bottom:0%;
}
}
/*从下到上收起*/
@keyframes put_BelowToTop{
0% {
height:100%;
width: 100%;
top:0%;
}
100% {
height: 0%;
width: 100%;
top:0%;
}
}
css3图片展示方式的更多相关文章
- css3图片处理方式 object-fit
.fill { object-fit: fill; } .contain { object-fit: contain; } .cover { object-fit: cover; } .none { ...
- 超厉害的CSS3图片破碎爆炸效果!
var fx = { buffer : function(obj, cur, target, fnDo, fnEnd, fs){ if(!fs)fs=6; var now={}; var x=0; ...
- CSS3 实现六边形Div图片展示效果
原文:CSS3 实现六边形Div图片展示效果 效果图: 实现原理: 这个效果的主要css样式有: 1.>transform: rotate(120deg); 图片旋转 2.>overflo ...
- 纯CSS3实现图片展示特效
本文中要实现的一个纯CSS3的图片展示特效,以前只能用JavaScript实现,可想而知会受到多方面的限制,特别是性能.而今天我们将用简单的CSS3代码实现,你会发现它的动画效果在现代浏览器的帮助下无 ...
- 20+功能强大的jQuery/CSS3图片特效插件
以下是分享的20几个不错的图片特效插件,基于jQuery和CSS3. 1.jQuery图片下滑切换播放效果 这是一款基于jQuery的焦点图插件,这款焦点图的特点是有向下滑动的动画效果,滑到底部时,有 ...
- 使用图片视频展示插件blueimp Gallery改造网站的视频图片展示
在很多情况下,我们网站可能会展示我们的产品图片.以及教程视频等内容,结合一个比较好的图片.视频展示插件,能够使得我们的站点更加方便使用,也更加酷炫,在Github上有很多相关的处理插件可以找来使用,有 ...
- CSS3图片倒影技术实现及原理
CSS3图片倒影技术实现及原理 目前为止我们已经探讨了很多CSS3中的新功能和新特征.除了上面这些,实际上还有很多CSS新属性并未包含进CSS3官方标准中,像谷歌浏览器或火狐浏览器等都会利用CSS的浏 ...
- openseadragon.js与deep zoom java实现艺术品图片展示
openseadragon.js 是一款用来做图像缩放的插件,它可以用来做图片展示,做展示的插件很多,也很优秀,但大多数都解决不了图片尺寸过大的问题. 艺术品图像展示就是最简单的例子,展示此类图片一般 ...
- Image Wall - jQuery & CSS3 图片墙效果
今天我们要为您展示如何基于 jQuery 和 CSS3 创建一个整洁的图片墙效果.我们的想法是在页面上洒上一些大小不同的缩略图,并在当我们点击图片时候显示丝带,会显示一些描述,再次点击缩略图时,丝带将 ...
随机推荐
- Minimal coverage (贪心,最小覆盖)
题目大意:先确定一个M, 然后输入多组线段的左端和右端的端点坐标,然后让你求出来在所给的线段中能够 把[0, M] 区域完全覆盖完的最少需要的线段数,并输出这些线段的左右端点坐标. 思路分析: 线段区 ...
- 第一周<单元一聚类>
K-means 聚类算法 初始随机选择 而后不断更新 kmeans 应用 省份归类 调用kmeans方法所需要的参数 n_clusters 指定的聚类中心 init 初始聚类中心的初始化方法 默认k- ...
- UIImageView添加圆角
最直接的方法就是使用如下属性设置: 1 2 3 imgView.layer.cornerRadius = 10; // 这一行代码是很消耗性能的 imgView.clipsToBounds = YES ...
- JS中获取URL的参数的方法
这里,我学习的是使用正则的方法来获得URL的参数 函数的方法如下: <a href="www.baidu.com">百度</a> <script sr ...
- 公司电脑安装mysql出现小问题
按步骤将mysql安装好后,在自己电脑完全没问题,但是在公司电脑安装的时候出现了这样的问题. 查阅资料以后,找到了问题: 参考链接:https://blog.csdn.net/huacode/arti ...
- SQLserver与Mysql的区别
参考链接:https://www.cnblogs.com/qingqing-919/p/8417773.html
- JMeter与LoadRunner的对比
1. 界面.安装.协议支持.函数库.成本.开源 2. 都可以实现分布式负载,相对来说LoadRunner更强大一些 3. 都支持在windows和linux环境的负载生成器.控制台方面,Jmeter跨 ...
- Xcode 中的Bundle versions string, short 和 Bundle version 区别
Bundle version is the internal version number of your app. Short version string is the publically vi ...
- UVa 10285【搜索】
UVa 10285 哇,竟然没超时!看网上有人说是记忆化搜索,其实不太懂是啥...感觉我写的就是毫无优化的dfs暴力....... 建立一个坐标方向结构体数组,每个节点dfs()往下搜就好了. #in ...
- Python类型模块:types
types模块中定义了Python中所有的类型,包括NoneType, TypeType, IntType, FloatType, BooleanType, BufferType, Bui ...