CSS里面常用的动画集合
/* 印章效果 */ @-webkit-keyframes zoomIn { 0% { opacity:0; -webkit-transform: scale3d(10, 10, 10); transform: scale3d(10, 10,10); } 1%{ } 100% { opacity:1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1,1); } } @keyframes zoomIn { 0% { opacity:0; -webkit-transform: scale3d(10, 10, 10); transform: scale3d(10, 10,10); } 1%{ opacity:1; } 100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .zoomInPanchu{ -webkit-animation: zoomIn 0.5s 1.5s both; animation: zoomIn 0.5s 1.5s both; }
/* *底部箭头 */ @-webkit-keyframes bounceInUp { 0%, 50%, 100% { -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); } 0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 50% { -webkit-transform: translate3d(0, -15px, 0); transform: translate3d(0, -15px, 0); } 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInUp { 0%, 50%, 100% { -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); } 0% { opacity: 0; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 50% { opacity: 1; -webkit-transform: translate3d(0, -15px, 0); transform: translate3d(0, -15px, 0); } 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInUp { -webkit-animation-name: bounceInUp; animation-name: bounceInUp; -webkit-animation-duration: 2s; animation-duration: 2s; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-iteration-count:infinite; animation-iteration-count:infinite; }
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。