/**
 * Scroll / load entrance animations (requires html.sunway-entrance from entrance.js).
 */

html.sunway-entrance .sunway-enter {
	opacity: 0;
	transform: translate3d(0, 1.125rem, 0);
	transition:
		opacity 0.55s ease,
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--sunway-enter-delay, 0s);
}

html.sunway-entrance .sunway-enter.is-inview {
	opacity: 1;
	transform: none;
}

html.sunway-entrance .sunway-standard-header.sunway-enter {
	transform: none;
	transition-duration: 0.4s;
	transition-timing-function: ease;
}

html.sunway-entrance .site-main .hero.sunway-enter {
	opacity: 1;
	transform: none;
}

html.sunway-entrance .sunway-enter--fade {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html.sunway-entrance .sunway-enter {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
