animation
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了animation相关的知识,希望对你有一定的参考价值。
animation-name animation-duration/*持续时间*/ animation-timing-function: linear | ease | ease-in | ease-out | ease-in-out animation-delay /*延迟时间*/ animation-iteration-count animation-direction :normal | altenate animation-fill-mode: none | forwards /*当动画完成后,保持最后一个属性值*/| backwards | both animation-play-state: paused|running .in { z-index:999; display: block; -webkit-animation: in-charlie .75s ease-out forwards .25s; -moz-animation: in-charlie .75s ease-out forwards .25s; -o-animation: in-charlie .75s ease-out forwards .25s; animation: in-charlie .75s ease-out forwards .25s; opacity: 0; } @-webkit-keyframes in-charlie { 0% { -webkit-transform: translate3d(0, 150px, 0); opacity: 0; } 100% { -webkit-transform: translate3d(0, 0, 0); opacity: 1; } } @-moz-keyframes in-charlie { 0% { -moz-transform: translate3d(0, 150px, 0); opacity: 0; } 100% { -moz-transform: translate3d(0, 0, 0); opacity: 1; } } @-o-keyframes in-charlie { 0% { -o-transform: translate3d(0, 150px, 0); opacity: 0; } 100% { -o-transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes in-charlie { 0% { -webkit-transform: translate3d(0, 150px, 0); -moz-transform: translate3d(0, 150px, 0); -o-transform: translate3d(0, 150px, 0); transform: translate3d(0, 150px, 0); opacity: 0; } 100% { -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } }
以上是关于animation的主要内容,如果未能解决你的问题,请参考以下文章
Unity 使用Animation Clip(动画片段) 对Animation Rig的Rig Weight (rig权重) 进行调整,出现无法调整的问题,及解决方法