/*
==============================================
CSS3 ANIMATION CHEAT SHEET
==============================================
Edit your keyframes and animations here!

Forked from Justin Aguilar's CSS3 Animation Cheat Sheet

www.justinaguilar.com/animations/

Questions, comments, concerns, love letters:
justin@justinaguilar.com
==============================================
*/

/*
==============================================
fan
==============================================
*/

.delay1 {
	animation-delay: 1s;
	animation-fill-mode: forwards;
	/* when adding a delay you may notice by default the image displayes at the "end state" before the animation begins. Because of this, you'll also need to add an animation-fill-mode property and usually the value you want to add is backwards to avoid this "pop" back and forth. */
}

.delay2 {
	animation-delay: 2s;
	animation-fill-mode: forwards;
}

.delay3 {
	animation-delay: 3s;
	animation-fill-mode: forwards;
}

.fan {
	animation-name: fan;
	animation-duration: 1s;
	animation-timing-function: ease-in-out;
	transform-origin: 100% 100%;
	animation-fill-mode: forwards;
	visibility: visible !important;
}

@keyframes fan {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(8deg);
	}
}

.fan2 {
	animation-name: fan2;
	animation-delay: 1s;
	animation-duration: 1s;
	animation-timing-function: ease-in-out;
	transform-origin: 100% 100%;
	animation-fill-mode: forwards;
	visibility: visible !important;
}

@keyframes fan2 {
	0% {
		transform: rotate(8deg);
	}

	100% {
		transform: rotate(16deg);
	}
}

/*
==============================================
slideDown
==============================================
*/

.slideDown {
	animation-name: slideDown;
	animation-duration: 2s;
	animation-timing-function: ease;

	animation-delay: 2s;
	/* when adding a delay you may notice by default the image displayes at the "end state" before the animation begins. Because of this, you'll also need to add an animation-fill-mode property and usually the value you want to add is backwards to avoid this "pop" back and forth. */

	animation-fill-mode: backwards;
	/* if you need to rotate or have something move from a specific "anchor point" instead of the middle which is default, you'll need to add a transform-origin
    transform-origin: 50% 100%;
    */

	visibility: visible !important;
}

@keyframes slideDown {
	0% {
		transform: translateY(-100%);
	}
	50% {
		transform: translateY(8%);
	}
	65% {
		transform: translateY(-4%);
	}
	80% {
		transform: translateY(4%);
	}
	95% {
		transform: translateY(-2%);
	}
	100% {
		transform: translateY(0%);
	}
}

/*
==============================================
slideUp
==============================================
*/

.slideUp {
	animation-name: slideUp;
	animation-duration: 1s;
	animation-timing-function: ease;
	visibility: visible !important;
}

@keyframes slideUp {
	0% {
		transform: translateY(100%);
	}
	50% {
		transform: translateY(-8%);
	}
	65% {
		transform: translateY(4%);
	}
	80% {
		transform: translateY(-4%);
	}
	95% {
		transform: translateY(2%);
	}
	100% {
		transform: translateY(0%);
	}
}

/*
==============================================
slideLeft
==============================================
*/

.slideLeft {
	animation-name: slideLeft;
	animation-duration: 1s;
	animation-timing-function: ease-in-out;
	visibility: visible !important;
}

@keyframes slideLeft {
	0% {
		transform: translateX(150%);
	}
	50% {
		transform: translateX(-8%);
	}
	65% {
		transform: translateX(4%);
	}
	80% {
		transform: translateX(-4%);
	}
	95% {
		transform: translateX(2%);
	}
	100% {
		transform: translateX(0%);
	}
}

/*
==============================================
slideRight
==============================================
*/

.slideRight {
	animation-name: slideRight;
	animation-duration: 1s;
	animation-timing-function: ease-in-out;
	visibility: visible !important;
}

@keyframes slideRight {
	0% {
		transform: translateX(-100vw);
	}
	50% {
		transform: translateX(6vw);
	}
	65% {
		transform: translateX(2vw);
	}
	80% {
		transform: translateX(5vw);
	}
	90% {
		transform: translateX(3vw);
	}
	100% {
		transform: translateX(4vw);
	}
}

/*
==============================================
slideExpandUp
==============================================
*/

.slideExpandUp {
	animation-name: slideExpandUp;
	animation-duration: 1.6s;
	animation-delay: 2s;
	animation-fill-mode: backwards;
	animation-timing-function: ease-out;
	visibility: visible !important;
}

@keyframes slideExpandUp {
	0% {
		transform: translateY(100%) scaleX(0.5);
	}
	30% {
		transform: translateY(-8%) scaleX(0.5);
	}
	40% {
		transform: translateY(2%) scaleX(0.5);
	}
	50% {
		transform: translateY(0%) scaleX(1.1);
	}
	60% {
		transform: translateY(0%) scaleX(0.9);
	}
	70% {
		transform: translateY(0%) scaleX(1.05);
	}
	80% {
		transform: translateY(0%) scaleX(0.95);
	}
	90% {
		transform: translateY(0%) scaleX(1.02);
	}
	100% {
		transform: translateY(0%) scaleX(1);
	}
}

/*
==============================================
expandUp
==============================================
*/

.expandUp {
	animation-name: expandUp;
	animation-duration: 0.7s;
	animation-timing-function: ease;
	visibility: visible !important;
}

@keyframes expandUp {
	0% {
		transform: translateY(100%) scale(0.6) scaleY(0.5);
	}
	60% {
		transform: translateY(-7%) scaleY(1.12);
	}
	75% {
		transform: translateY(3%);
	}
	100% {
		transform: translateY(0%) scale(1) scaleY(1);
	}
}

/*
==============================================
fadeIn, fadeInGrow
==============================================
*/

.fadeIn {
	animation-name: fadeIn;
	transition-delay: 2s;
	animation-duration: 1.2s;
	animation-timing-function: ease-in-out;
	animation-fill-mode: forwards;
	visibility: visible !important;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

.fadeInGrow {
	animation-name: fadeIn;
	transition-delay: 2s;
	animation-duration: 1.2s;
	animation-timing-function: ease-in-out;
	visibility: visible !important;
}

@keyframes fadeInGrow {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	60% {
		transform: scale(1.1);
	}
	80% {
		transform: scale(0.9);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/*
==============================================
expandOpen
==============================================
*/

.expandOpen {
	animation-name: expandOpen;
	animation-duration: 1.2s;
	animation-timing-function: ease-out;
	visibility: visible !important;
}

@keyframes expandOpen {
	0% {
		transform: scale(1.8);
	}
	50% {
		transform: scale(0.95);
	}
	80% {
		transform: scale(1.05);
	}
	90% {
		transform: scale(0.98);
	}
	100% {
		transform: scale(1);
	}
}

/*
==============================================
bigEntrance
==============================================
*/

.bigEntrance {
	animation-name: bigEntrance;
	animation-duration: 1.6s;
	animation-timing-function: ease-out;
	visibility: visible !important;
}

@keyframes bigEntrance {
	0% {
		transform: scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);
		opacity: 0.2;
	}
	30% {
		transform: scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);
		opacity: 1;
	}
	45% {
		transform: scale(0.98) rotate(1deg) translateX(0%) translateY(0%);
		opacity: 1;
	}
	60% {
		transform: scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);
		opacity: 1;
	}
	75% {
		transform: scale(0.99) rotate(1deg) translateX(0%) translateY(0%);
		opacity: 1;
	}
	90% {
		transform: scale(1.01) rotate(0deg) translateX(0%) translateY(0%);
		opacity: 1;
	}
	100% {
		transform: scale(1) rotate(0deg) translateX(0%) translateY(0%);
		opacity: 1;
	}
}

/*
==============================================
hatch
==============================================
*/

.hatch {
	animation-name: hatch;
	animation-duration: 2s;
	animation-timing-function: ease-in-out;
	transform-origin: 50% 0%;
	visibility: visible !important;
}

@keyframes hatch {
	0% {
		transform: rotate(0deg);
	}
	20% {
		transform: rotate(-2deg) scaleY(1.05);
	}
	35% {
		transform: rotate(2deg) scaleY(1);
	}
	50% {
		transform: rotate(-2deg);
	}
	65% {
		transform: rotate(1deg);
	}
	80% {
		transform: rotate(-1deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

/*
==============================================
bounce
==============================================
*/

.bounce {
	animation-name: bounce;
	animation-duration: 1.6s;
	animation-timing-function: ease;
	transform-origin: 50% 100%;
}

@keyframes bounce {
	0% {
		transform: translateY(0%) scaleY(0.6);
	}
	60% {
		transform: translateY(-100%) scaleY(1.1);
	}
	70% {
		transform: translateY(0%) scaleY(0.95) scaleX(1.05);
	}
	80% {
		transform: translateY(0%) scaleY(1.05) scaleX(1);
	}
	90% {
		transform: translateY(0%) scaleY(0.95) scaleX(1);
	}
	100% {
		transform: translateY(0%) scaleY(1) scaleX(1);
	}
}

/*
==============================================
pulse
==============================================
*/

.pulse {
	animation-name: pulse;
	animation-duration: 1.5s;
	animation-iteration-count: infinite;
}

@keyframes pulse {
	0% {
		transform: scale(0.9);
		opacity: 0.7;
	}
	50% {
		transform: scale(1);
		opacity: 1;
	}
	100% {
		transform: scale(0.9);
		opacity: 0.7;
	}
}

/*
==============================================
floating
==============================================
*/

.floating {
	animation-name: floating;
	animation-duration: 1.5s;
	animation-iteration-count: infinite;
}

@keyframes floating {
	0% {
		transform: translateY(0%);
	}
	50% {
		transform: translateY(8%);
	}
	100% {
		transform: translateY(0%);
	}
}

/*
==============================================
tossing
==============================================
*/

.tossing {
	animation-name: tossing;
	animation-duration: 2.5s;
	animation-iteration-count: infinite;
}

@keyframes tossing {
	0% {
		transform: rotate(-4deg);
	}
	50% {
		transform: rotate(4deg);
	}
	100% {
		transform: rotate(-4deg);
	}
}

/*
==============================================
pullUp
==============================================
*/

.pullUp {
	animation-name: pullUp;
	animation-duration: 1.1s;
	animation-timing-function: ease-out;
	transform-origin: 50% 100%;
}

@keyframes pullUp {
	0% {
		transform: scaleY(0.1);
	}
	40% {
		transform: scaleY(1.02);
	}
	60% {
		transform: scaleY(0.98);
	}
	80% {
		transform: scaleY(1.01);
	}
	100% {
		transform: scaleY(0.98);
	}
	80% {
		transform: scaleY(1.01);
	}
	100% {
		transform: scaleY(1);
	}
}

/*
==============================================
pullDown
==============================================
*/

.pullDown {
	animation-name: pullDown;
	animation-duration: 1.1s;
	animation-timing-function: ease-out;
	transform-origin: 50% 0%;
}

@keyframes pullDown {
	0% {
		transform: scaleY(0.1);
	}
	40% {
		transform: scaleY(1.02);
	}
	60% {
		transform: scaleY(0.98);
	}
	80% {
		transform: scaleY(1.01);
	}
	100% {
		transform: scaleY(0.98);
	}
	80% {
		transform: scaleY(1.01);
	}
	100% {
		transform: scaleY(1);
	}
}

/*
==============================================
stretchLeft
==============================================
*/

.stretchLeft {
	animation-name: stretchLeft;
	animation-duration: 1.5s;
	animation-timing-function: ease-out;
	transform-origin: 100% 0%;
}

@keyframes stretchLeft {
	0% {
		transform: scaleX(0.3);
	}
	40% {
		transform: scaleX(1.02);
	}
	60% {
		transform: scaleX(0.98);
	}
	80% {
		transform: scaleX(1.01);
	}
	100% {
		transform: scaleX(0.98);
	}
	80% {
		transform: scaleX(1.01);
	}
	100% {
		transform: scaleX(1);
	}
}

/*
==============================================
stretchRight
==============================================
*/

.stretchRight {
	animation-name: stretchRight;
	animation-duration: 1.5s;
	animation-timing-function: ease-out;
	transform-origin: 0% 0%;
}

@keyframes stretchRight {
	0% {
		transform: scaleX(0.3);
	}
	40% {
		transform: scaleX(1.02);
	}
	60% {
		transform: scaleX(0.98);
	}
	80% {
		transform: scaleX(1.01);
	}
	100% {
		transform: scaleX(0.98);
	}
	80% {
		transform: scaleX(1.01);
	}
	100% {
		transform: scaleX(1);
	}
}
