上效果

效果描述:原来这些图片都绝对定位在最右边,并有一个css3 3D的旋转初始效果。随着动画的开始,依次向左移动,并旋转到0度。(主要用于引导页步骤的描述)

上代码:

html布局

<div class="guidancePage2 col-md-12">
<div class="pre"><img src="img/pre.png" alt="上一页"></div>
<div class="step">
<div class="step_img">
<div>
<div class="step_content"></div>
<p>(一)</p>
</div>
<div>
<div class="step_content"></div>
<p>(二)</p>
</div>
<div>
<div class="step_content"></div>
<p>(三)</p>
</div>
<div>
<div class="step_content"></div>
<p>(四)</p>
</div>
<div>
<div class="step_content"></div>
<p>(五)</p>
</div>
</div>
<div class="step_state"></div>
</div>
</div>

  css代码,没有做兼容

.guidancePage2 .pre{
margin-top: 10px;
}
.step {
width: 80%;
height: 50%;
/*background: #fff;*/
position: relative;
left: 50%;
margin-left: -47%;
top: 10%;
}
.step_img {
height: 100%;
width: 100%;
/*background: darkseagreen;*/
position: relative;
}
.step_img>div {
width: 19%;
height: 100%;
position: absolute; right: 0px;
transform: perspective(1377px) rotate(0deg) rotateY(-100deg);
/*box-shadow: 0px 2px 0px #ccc;*/
/*background: url("../img/1.jpg") no-repeat;*/
background-size: cover;
}
.step_content {
width: 100%;
height: 90%;
background-color:rgba(255, 255, 255, .8);
position: relative;
}
.step_img>div p{
text-align: center;
color: #fff;
font-weight: 800;
position:relative;
}
@-webkit-keyframes Step
{
0% {right:0px; transform: perspective(1377px) rotate(0deg) rotateY(-100deg);}
100% {right:81%;transform: perspective(1377px) rotate(0deg) rotateY(0deg);}
}
@-webkit-keyframes Step2
{
0% {right:0px; transform: perspective(1377px) rotate(0deg) rotateY(-100deg);}
100% {right:61%;transform: perspective(1377px) rotate(0deg) rotateY(0deg);}
}
@-webkit-keyframes Step3
{
0% {right:0px; transform: perspective(1377px) rotate(0deg) rotateY(-100deg);}
100% {right:41%;transform: perspective(1377px) rotate(0deg) rotateY(0deg);}
}
@-webkit-keyframes Step4
{
0% {right:0px; transform: perspective(1377px) rotate(0deg) rotateY(-100deg);}
100% {right:21%;transform: perspective(1377px) rotate(0deg) rotateY(0deg);}
}
@-webkit-keyframes Step5
{
0% {right:0px; transform: perspective(1377px) rotate(0deg) rotateY(-100deg);}
100% {right:1%;transform: perspective(1377px) rotate(0deg) rotateY(0deg);}
}
.step_img>div{
cursor: pointer;
}
.step_img>div:nth-child(1){
animation:Step 1s linear;
animation-fill-mode:forwards;
animation-iteration-count:1;
}
.step_img>div:nth-child(2){
animation:Step2 1s linear .8s;
animation-iteration-count:1;
animation-fill-mode:forwards;
}
.step_img>div:nth-child(3){
animation:Step3 1s linear 1.6s;
animation-iteration-count:1;
animation-fill-mode:forwards;
}
.step_img>div:nth-child(4){
animation:Step4 1s linear 2.4s;
animation-iteration-count:1;
animation-fill-mode:forwards;
}
.step_img>div:nth-child(5){
animation:Step5 1s linear 3.2s;
animation-iteration-count:1;
animation-fill-mode:forwards;
}

  

css animation 动画的制作的更多相关文章

  1. css animation动画

    css 动画: 动画是CSS3中具有颠覆性的特征之一,可通过设置多个节点来精确控制一个或一组动画,常用来实现复杂的动画效果. 必要元素: a.通过@keyframes指定动画序列:自动补间动画,确定两 ...

  2. css animation动画使用

    <!-- animation 属性是一个简写属性,用于设置六个动画属性: animation-name animation-duration animation-timing-function ...

  3. animation动画的笔记

    animation的主要语法: -webkit-animation-duration:/*-webkit是针对个别浏览器内核支持,duration是动画时间*/ -webkit-animation-t ...

  4. 利用 CSS animation 和 CSS sprite 制作动画

    CSS3 大大强化了制作动画的能力,但是如果要做出图案比较复杂的动画,选择 GIF 依然是一个不错的选择.今天给大家介绍一个使用 CSS animation 配合雪碧图(CSS sprite)来制作动 ...

  5. 百度前端技术学院2018笔记 之 利用 CSS animation 制作一个炫酷的 Slider

    前言 题目地址 利用 CSS animation 制作一个炫酷的 Slider 思路整理 首先页面包含三种东西 一个是type为radio的input其实就是单选框 二是每个单选框对应的label 三 ...

  6. 基于animation.css实现动画旋转特效

    分享一款基于animation.css实现动画旋转特效.这是一款基于CSS3实现的酷炫的动画旋转特效代码.效果图如下: 在线预览   源码下载 实现的代码. html代码: <div class ...

  7. No.6 - 利用 CSS animation 制作一个炫酷的 Slider

    *{ margin:; padding:; } div{ margin: auto; width: 800px; height: 681px; position: relative; overflow ...

  8. css animation @keyframes 动画

    需求:语音播放动态效果 方案:使用如下图片,利用 css animation @keyframes  做动画 html <span class="horn" :class=& ...

  9. CSS总结六:动画(一)ransition:过渡、animation:动画、贝塞尔曲线、step值的应用

    transition-property transition-duration transition-timing-function transition-delay animation-name a ...

随机推荐

  1. twisted学习笔记4 部署Twisted 应用程序

    原创博文,转载请注明出处. Twisted是一个可扩展,跨平台的网络服务器和客户端引擎. Twisted Application 框架有五个主要基础部分组成:服务,应用程序,TAC文件插件和twist ...

  2. 自承载Web API

    自承载Web API 前言 阅读本文之前,您也可以到Asp.Net Web API 2 系列导航进行查看 http://www.cnblogs.com/aehyok/p/3446289.html As ...

  3. Orchard是一个了不起CMS(内容管理系统)

    在这个系列中,我们将共同经历从头开始构建一个Orchard模块的过程! 虽然Orchard是一个了不起CMS(内容管理系统),有着强大的功能和令人振奋的架构,可以无限的扩展,但它可能需要花费一定时间, ...

  4. js闭包和ie内存泄露原理

    也议 js闭包和ie内存泄露原理 可以, 但小心使用. 闭包也许是 JS 中最有用的特性了. 有一份比较好的介绍闭包原理的文档. 有一点需要牢记, 闭包保留了一个指向它封闭作用域的指针, 所以, 在给 ...

  5. 使用brew安装软件

    使用brew安装软件 brew 又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件, 只需要一个命令, 非常方便 brew类似ubuntu系统下的apt- ...

  6. Ruby编码

    目录 背景字符串可以使用不同的编码编码转换编码强制不同编码的字符串相加后是啥结果?一直没使用过的\u和\x使用Sublime开发Ruby时,输出到控制台的字符串为啥不能使用多种编码?备注 背景返回目录 ...

  7. SQL拼接方法

    smark Beetle可靠.高性能的.Net Socket Tcp通讯组件 另类SQL拼接方法 在编写SQL的时候经常需要对SQL进行拼接,拼接的方式就是直接String+处理,但这种情况有个不好的 ...

  8. 添加可运行的js代码

    如何在博客园的文章/随笔中添加可运行的js代码 在博客园浏览大牛们写的文章时,经常会看到在文章中混有一些可运行示例,例如司徒正美的博客中: 带有可运行示例 可以点击“运行代码” 经过一番小小的探索,掌 ...

  9. 当Erlang遇到Solr

    当Erlang遇到Solr   Joe Armstrong的访谈中有一段关于"打开黑盒子"的阐述,给我留下很深的印象:Joe Armstrong在做XWindows开发时没有使用对 ...

  10. SPFILE 、PFILE 的全面解读

    这里先阐述一下数据库的启动过程: 1.      启动实例/例程(nomount状态)时,读取参数文件(文本文件PFILE 或服务器参数文件SPFILE),分配SGA.启动后台进程.打开告警文件及后台 ...