动画

倒影:-webkit-box-reflect:right 10px -webkit-linear-gradient(top ,rgba(0,0,0,0.2) 20%,rgba(0,0,0,0.6));

text-shadow:text-shadow:-5px -5px 5px purple,0 0 5px purple,0 0 10px red,0 5px 10px purple, 5px 5px 10px red,5px 5px 15px purple;

径向渐变:background-image: -webkit-radial-gradient( left top,white 35%,#FF1690,#FF4DE9,#FFABF8,#F4B8FB);

线性渐变:background-image: -webkit-linear-gradient(top right,red,yellow 30%,deepskyblue,pink ,green,orange);

动画:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>Document</title>

<style>

/* 动画声明和定义 */

/*@-webkit-keyframes move{*/

/* 从。。。*/

/*from{

-webkit-transform: translateX(0px);

-ms-transform: translateX(0px);

-o-transform: translateX(0px);

transform: translateX(0px);

}

50%{

-webkit-transform: translateY(100px);

-ms-transform: translateY(100px);

-o-transform: translateY(100px);

transform: translateY(100px);

}*/

/* 到。。。 */

/*to{

-webkit-transform: translateX(200px);

-ms-transform: translateX(200px);

-o-transform: translateX(200px);

transform: translateX(200px);

}

}*/

@-webkit-keyframes move1{

from{

webkit-transform: translateZ(2000px);

-ms-transform:  translateZ(2000px);

-o-transform:  translateZ(2000px);

transform: translateZ(2000px);

}

to{

webkit-transform: translateZ(0px);

-ms-transform:  translateZ(0px);

-o-transform:  translateZ(0px);

transform: translateZ(0px);

}

}

html, body{

height: 100%;

}

body{

perspective: 1000px;


-webkit-transform-style: preserve-3d;

-moz-transform-style: preserve-3d;

-ms-transform-style: preserve-3d;

transform-style: preserve-3d;

}

div{

width: 200px;

height: 200px;

background-color: #ccc;

/* animation 动画 */

/* animn */

-webkit-animation-name: "move1";

-o-animation-name: "move1";

animation-name: "move1";

 

/*andur */

/*设置动画的运动时间 */

-webkit-animation-duration: 1s;

-o-animation-duration: 1s;

animation-duration: 1s;


/* 设置动画的运动次数 */

/* aici */

/* infinite 无限次数 */

-webkit-animation-iteration-count: infinite;

-o-animation-iteration-count: infinite;

animation-iteration-count:infinite ;


/* 运动效果 */

/* antf */

-webkit-animation-timing-function: linear;

-o-animation-timing-function: linear;

animation-timing-function: linear;


/* 运动方向和轨迹 */

/* andir */

/* reverse 相反方向  alternate 往返运动 normal 正常方向 */

/* 当设置往返运动时,返回时的运动占用运动次数 */

-webkit-animation-direction: normal;

-o-animation-direction: normal;

animation-direction: normal;


/* 动画运动状态 */

/* anps */

/* paused 暂停 running 运动 */

-webkit-animation-play-state: running;

-o-animation-play-state: running;

animation-play-state: running;


/* 运动停留状态 */

/* afm */

/* both   forwards 停留在结束的位置 backwards 返回到初始位置 */

-webkit-animation-fill-mode: forwards;

-o-animation-fill-mode: forwards;

animation-fill-mode: forwards;


/* delay 延迟 */

/* and */

/*-webkit-animation-delay: 1s;

-o-animation-delay: 1s;

animation-delay: 1s;*/


/* 复合写法 */

/* ani */

/* 1.名称 2.运动时间 3.运动方式 4.运动次数 5.延迟 */

/*-webkit-animation:"move" 1s ease 5 1s ;

-o-animation:"move" 1s ease 5 1s ;

animation:"move" 1s ease 5 1s ;*/

}

</style>

</head>

<body>

<div></div>

</body>

</html>



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值