/*悬壶济世放大缩小*/
.swing{
    -webkit-transform-origin: bottom center;
    transform-origin: bottom center;
    -webkit-animation-name: swing;
    animation-name: swing;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    animation-delay: 0.5s;
    -webkit-animation-delay: 0.5s;
    animation-iteration-count: 2 ;
    -webkit-animation-iteration-count: 2 ;
}

@keyframes swing{
	20% {
    	transform: scale(1);
    	-webkit-transform: scale(1);
	}
	40% {
	    transform: scale(1.1);
	}
	60% {
	    transform: scale(1);
	}
	80% {
	    transform: scale(1.1);
	}
	100% {
	    transform: scale(1);
	}
}

/*点击按钮左边右边进入*/
.animate1{
	-webkit-animation-duration: 1s;
    animation-duration: 1s;
    animation-delay: 0.9s;
    -webkit-animation-delay: 0.9s;
}
.animate2{
	-webkit-animation-duration: 1s;
    animation-duration: 1s;
}
.bounceInLeft{
    -webkit-animation-name: bounceInLeft;
    animation-name: bounceInLeft;
    
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@keyframes bounceInLeft{
	0% {
	    opacity: 0;
	    -webkit-transform: translateX(-2000px);
	    -ms-transform: translateX(-2000px);
	    transform: translateX(-2000px);
	}
	60% {
	    opacity: 1;
	    -webkit-transform: translateX(30px);
	    -ms-transform: translateX(30px);
	    transform: translateX(30px);
	}
	80% {
	    -webkit-transform: translateX(-10px);
	    -ms-transform: translateX(-10px);
	    transform: translateX(-10px);
	}
	100% {
	    -webkit-transform: translateX(0);
	    -ms-transform: translateX(0);
	    transform: translateX(0);
	}
}
.bounceInRight{
	-webkit-animation-name: bounceInRight;
    animation-name: bounceInRight;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}
@keyframes bounceInRight{
	0% {
	    opacity: 0;
	    -webkit-transform: translateX(2000px);
	    -ms-transform: translateX(2000px);
	    transform: translateX(2000px);
	}
	60% {
	    opacity: 1;
	    -webkit-transform: translateX(-30px);
	    -ms-transform: translateX(-30px);
	    transform: translateX(-30px);
	}
	80% {
	    -webkit-transform: translateX(10px);
	    -ms-transform: translateX(10px);
	    transform: translateX(10px);
	}
	100% {
	    -webkit-transform: translateX(0);
	    -ms-transform: translateX(0);
	    transform: translateX(0);
	}
}

/*书摔下来的动画*/
.bounceInDown{
	-webkit-animation-name: bounceInDown;
	-webkit-animation-fill-mode: both;
	-webkit-animation-timing-function: ease-in-out;
	-webkit-animation-direction: alternate;
	
	-moz-animation-name: bounceInDown;
	-moz-animation-fill-mode: both;
	-moz-animation-timing-function: ease-in-out;
	-moz-animation-direction: alternate;
	
	animation-name: bounceInDown;
	animation-fill-mode: both;
	animation-timing-function: ease-in-out;
	animation-direction: alternate;
}
@keyframes bounceInDown{
	0% {
	    -webkit-transform: translateY(-2000px);
	    -ms-transform: translateY(-2000px);
	    transform: translateY(-2000px);
	}
	60% {
	    -webkit-transform: translateY(30px);
	    -ms-transform: translateY(30px);
	    -moz-transform: translateY(30px);
	    transform: translateY(30px);
	}
	80% {
	    -webkit-transform: translateY(-20px);
	    -ms-transform: translateY(-20px);
	    -moz-transform: translateY(-20px);
	    transform: translateY(-20px);
	}
	100% {
	    -webkit-transform: translateY(0);
	    -ms-transform: translateY(0);
	    -moz-transform: translateY(0);
	    transform: translateY(0);
	}
}


