上效果

效果描述:原来这些图片都绝对定位在最右边,并有一个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. 重定向和VT100编程

    重定向和VT100编程 一.文件重定向     我们知道在linux shell 编程的时候,可以使用文件重定向功能,如下所示: [root@localhost pipe]# echo "h ...

  2. HDU1423:Greatest Common Increasing Subsequence(LICS)

    Problem Description This is a problem from ZOJ 2432.To make it easyer,you just need output the lengt ...

  3. iOS LBS相关: 定位和中国特色的位置偏移纠正

    LBS模块,首先当然是定位,获取自己所在的位置.主要用到的就是CLLocationManager,实例一个,然后调用startUpdatingLocation即可.其中可以指定精度CLLocation ...

  4. UIKit类结构图

  5. SOCKET网络编程细节问题(2)

    SOCKET网络编程快速上手(二)——细节问题(2) 2.TCP数据包接收问题 对初学者来说,很多都会认为:客户端与服务器最终的打印数据接收或者发送条数都该是一致的,1000条发送打印,1000条接收 ...

  6. Oracle查询错误分析:ORA-01791:不是SELECTed表达式

    表结构如下: create table HH_BOOK_GOOD ( ID VARCHAR2(32) not null, BOOKID VARCHAR2(32) not null, GOODID VA ...

  7. 黑马程序员:Java基础总结----网络编程

    黑马程序员:Java基础总结 网络编程   ASP.Net+Android+IO开发 . .Net培训 .期待与您交流! 网络编程 网络通讯要素 . IP地址 . 网络中设备的标识 . 不易记忆,可用 ...

  8. c/c++ 算法之快速排序法 冒泡排序法,选择排序法,插入排序法

    本文详细叙述和实现了快速排序算法,冒泡排序 选择排序 插入排序比较简单,原理在这里不再详述,直接用代码进行了实现. 快速排序法(quicksort)是目前所公认最快的排序方法之一(视解题的对象而定), ...

  9. 使用 IDEA 创建 Maven Web 项目 (四)- 让 WEB 应用跑起来

    在 IDEA 中配置 Tomcat 单击 IDEA 工具栏上的 Edit Configurations... (在一个下拉框中),弹出 Run/Debug Configurations 对话框. 单击 ...

  10. 做个简单的Redis监控(源码分享)

    Redis监控 Redis 是目前应用广泛的NoSQL,我做的项目中大部分都是与Redis打交道,发现身边的朋友也更多人在用,相对于memcached 来说,它的优势也确实是可圈可点.在随着业务,数据 ...