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 创建一个整洁的图片墙效果.我们的想法是在页面上洒上一些大小不同的缩略图,并在当我们点击图片时候显示丝带,会显示一些描述,再次点击缩略图时,丝带将 ...
随机推荐
- vue移动端项目
用vue mint-ui jquery-weui写了一个移动端demo 技术栈 vue2.0 vue-router axios mint-ui jquery-weui webpack 页面截图 最后 ...
- Eslint报错的翻译
若在git中出现这个 http://eslint.org/docs/rules/eol-last 他是提醒你:在文件末尾要求或禁止换行 比如代码如下: 若在git中出现这个 https://eslin ...
- 【POJ 3261】Milk Patterns
[链接]h在这里写链接 [题意] 给你一个长度为n的序列. 问你能不能在其中找到一个最长的子串. 这个子串至少出现了k次. [题解] 长度越长,就越不可能出现k次 后缀数组+二分. N最大为2 ...
- 一个基于Asterisk构建的VOIP应用软件:Elastix介绍
Elastix 是一种应用软件,它整合了适用于那些基于 Asterisk 的 PBX 的最好工具,并将它们集成为单一的.易用的接口.同时,它增加了自己的工具集,以及允许创建第三方模块来使 Elasti ...
- Mysql里查询字段为Json格式的数据模糊查询以及分页方法
public void datagrid(CustomFormEntity customForm,HttpServletRequest request, HttpServletResponse res ...
- react-jd-index
看见一些代码的产物,会觉得非常的漂亮~感谢无私开源的程序员们~你们是最可爱的人儿~~ //index.jsx require('./app/lib/common.css'); import React ...
- 运行docker容器镜像2(指定容器启动时启动的脚本)
docker中启动容器有以下两种情况. 第一种是通过 # docker run containerid 启动一个容器. 第二种是重新启动已经关闭的容器. # docker start containe ...
- Android开发-API指南-<activity-alias>[原创译文]
http://blog.sina.com.cn/s/blog_48d491300100zmg5.html
- 两种最常用的 HTTP 方法:GET 和 POST。
什么是 HTTP? 超文本传输协议(HTTP)的设计目的是保证客户机与服务器之间的通信. HTTP 的工作方式是客户机与服务器之间的请求-应答协议. web 浏览器可能是客户端,而计算机上的网络应用程 ...
- LeetCode112 Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all ...