微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

3D动画

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<Meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title></title>

<style type="text/css">

div {

    margin: 0 auto;

    width: 540px;

    height: 405px;

    background:url(images/moto1.gif)center no-repeat;

    /* 定义3D空间 */

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

   /* 设计沿x轴旋转、20秒线性过渡动画、无限次播放 */

    -webkit-animation-name: x-spin;

    -webkit-animation-duration: 20s;

    -webkit-animation-iteration-count: infinite;

    -webkit-animation-timing-function: linear;

}

/* 调用动画 */

@-webkit-keyframes x-spin {

0% {

-webkit-transform: rotateX(0deg);

}

 50% {

-webkit-transform: rotateX(180deg);

}

 100% {

-webkit-transform: rotateX(360deg);

}

}

</style>

</head>

 

<body>

<div></div>

</body>

</html>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。