上效果

效果描述:原来这些图片都绝对定位在最右边,并有一个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. Python日期操作

    1. 日期输出格式化 所有日期.时间的api都在datetime模块内. 1. datetime => string now = datetime.datetime.now() now.strf ...

  2. 红黑树LLRB

    LLRB——红黑树的现代实现 一.本文内容 以一种简明易懂的方式介绍红黑树背后的逻辑实现2-3-4树,以及红黑树的插入.删除操作,重点在2-3-4树与红黑树的对应关系上,并理清红黑树相关操作的来龙去脉 ...

  3. 高级SQL特性

    SQL   SQL 必知必会·笔记<20>高级SQL特性 摘要: 约束(constraint)就是管理如何插入或处理数据库数据的规则.DBMS通过在数据库表上施加约束来实施引用完整性.1. ...

  4. 为什么选择MongoDB?

    为什么选择MongoDB? 阅读目录 开始 为啥用MongoDB? 原来的架构 新需求 如何解决? 新思路 选型条件 一些候选者 最初的选择 代价 新的候选者 重新选择 胆子大一点 胆子再大一点 胆子 ...

  5. Xilinx-Zynq Linux内核源码编译过程

    本文内容依据http://www.wiki.xilinx.com网址编写,编译所用操作系统为ubuntu 14 1.交叉编译环境的安装配置 1)http://www.wiki.xilinx.com/I ...

  6. 基于“泵”的TCP通讯(接上篇)

    基于“泵”的TCP通讯(接上篇) 上一篇博客中说了基于“泵”的UDP通讯,附上了一个Demo,模拟飞鸽传书的功能,功能不太完善,主要是为了说明“泵”在编程中的应用.本篇文章我再附上一个关于TCP通讯的 ...

  7. 有一个array的数组,长度为10000,大小不一,用算法找出该数组中的最大值。

    不用算法的答案是:   var a=[1,2,3,5……];alert(Math.max.apply(null, a));//最大值alert(Math.min.apply(null, a));//最 ...

  8. GO数值和字符串的相互转换

    转自:http://blog.sina.com.cn/s/blog_9e14446a01018m9i.html 在做项目的时候,通常都会碰到字符串转换,在这介绍一下字符串与整型的相互转换.在golan ...

  9. in和exists哪个效率高本人测试证明

    in和exists哪个效率高本人测试证明 SQLSERVR语句 in和exists哪个效率高自己测试本人测试证明 最近很多人讨论in和exists哪个效率高,今天就自己测试一下 我使用的是客户的数据库 ...

  10. Dalvik虚拟机的垃圾收集机制

    垃圾收集机制是Java虚拟机共有的特性, 这里介绍Dalvik虚拟机的垃圾收集机制特点. 在android2.3之前,有以下几个特点: 1.  垃圾收集线程在执行的时候,其它线程都停止. 2.  一次 ...