上效果

效果描述:原来这些图片都绝对定位在最右边,并有一个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. 计算image 积分图

    // testopencv.cpp : 定义控制台应用程序的入口点. // #include "stdafx.h" #include <opencv2\opencv.hpp& ...

  2. 随机函数Surprising

    之前写了个用来抽取1-54号的随机函数,发现30-40出现的情况很大,就在果壳上提问了一下//听取了某个大神的建议循环了10000次之后惊喜的发现这样写出现了一大堆相同的数字! 之后有个很神大牛解答了 ...

  3. ESB与SOA的关系

    ESB与SOA的关系 一.SOA和ESB一直是没有明确概念的两个缩略词 SOA----面向服务架构,实际上强调的是软件的一种架构,一种支撑软件运行的相对稳定的结构,表面含义如此,其实SOA是一种通过服 ...

  4. [原]逆向iOS SDK -- _UIImageAtPath 的实现(SDK 5.1)

    注释过的反汇编代码:http://pan.baidu.com/share/link?shareid=3491166579&uk=537224442 伪代码(不精确,仅供参考): NSStrin ...

  5. 搜索广告与广告网络Demand技术-探索与利用

    探索与利用(Explore and exploit) 点击率预测中还有一个重要的问题,就是探索与利用,它在工程中解决的并不好,我这章把现在论文中的常见的几种方法介绍一下.探索与利用它是所有互联网应用都 ...

  6. EasyNet.Solr 4.4.0发布及例子

    EasyNet.Solr 4.4.0发布及例子 EasyNet.Solr 4.4.0已经发布,可以直接从http://easynet.codeplex.com/ 下载试用并反馈.最新版本进行了以下改动 ...

  7. PHP自学之路---雇员管理系统(2)

    这个章节将讲解分层模式对雇员管理系统的系统,首先看下基本的流程图设计: 下面是具体的代码: 1.login.php(参照上节) 2.loginProcess.php <?php /** * * ...

  8. setprecision、fixed、showpoint的用法总结(经典!!超经典!!)

    首先要加头文件:iomanip 一:setprecision 作用:控制输出流显示浮点数的数字个数,setprecision(n)就是输出的n个数,会有四舍五入. 比如:double s=20.784 ...

  9. Android Phone和Pad UA区别

    很多Android开发者或者网站端都可能会困扰关于如何区分Android phone和Android Pad的ua.确实这个问题很困难,我也曾被困扰了一段时间,后来在Stackoverflow中发现了 ...

  10. protubuffer for windows配置指南!

    windows下Google Protocol Buffer 编译安装教程     protobuf的全称是Protocol Buffer,它是google 的一种数据交换的格式,可用于用于分布式应用 ...