/* -------------------------------- 

File#: _1_animated-headline
Title: Animated Headline
Descr: A collection of word replacement effects
Usage: codyhouse.co/license

-------------------------------- */

/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  

}
h1.js-text-anim {
		
	}

@media only screen and (max-width: 640px) {
	h1.js-text-anim {
		font-size: 1.2em;
	}
}



/* -------------------------------- 

Component 

-------------------------------- */

.text-anim {}

.text-anim__wrapper {
  position: relative;
  display: inline-block;
	color: rgba(4,192,253,1.00)
}

.text-anim__word {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline-block;
  white-space: nowrap;
}

.text-anim__word--in {
  position: relative;
  z-index: 2;
}

/* rotate */
.text-anim--rotate {
  --text-anim-duration: 0.85s;
  --text-anim-pause: 2.5s;
}

.text-anim--rotate .text-anim__wrapper {
  perspective: 300px;
}

.text-anim--rotate .text-anim__word {
  opacity: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transform-origin: 50% 100%;
  transform: rotateX(-180deg);
  transition: opacity calc(var(--text-anim-duration) / 3) cubic-bezier(0.215, 0.61, 0.355, 1), transform var(--text-anim-duration) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-anim--rotate .text-anim__word--in {
  opacity: 1;
  transform: rotateX(0deg);
}

.text-anim--rotate .text-anim__word--out {
  opacity: 0;
  transform: rotateX(180deg);
  transition: opacity calc(var(--text-anim-duration) / 6) cubic-bezier(0.215, 0.61, 0.355, 1), transform var(--text-anim-duration) cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* loader */
.text-anim--loader {
  --text-anim-duration: 2.5s;
  --text-anim-pause: 0s;
  color: hsl(225, 4%, 47%);
}

.text-anim--loader .text-anim__wrapper {
  color: hsl(230, 13%, 9%);
}

.text-anim--loader .text-anim__word {
  color: transparent;
  transition: color 0.2s;
}

.text-anim--loader .text-anim__word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transform-origin: left center;
  transform: translateY(100%) scaleX(0);
  transition: transform var(--text-anim-duration) cubic-bezier(0.215, 0.61, 0.355, 1);
}

.text-anim--loader .text-anim__word--in {
  color: currentColor;
}

.text-anim--loader .text-anim__word--in::after {
  transform: translateY(100%) scaleX(1);
}

.text-anim--loader .text-anim__word--out {
  color: transparent;
}

.text-anim--loader .text-anim__word--out::after {
  transition: none;
  transform: translateY(100%) scaleX(0);
}

/* slide */
.text-anim--slide {
  --text-anim-duration: 0.5s;
  --text-anim-pause: 2.5s;
}

.text-anim--slide .text-anim__wrapper {
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
          clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  padding: 0.1em 0;
}

.text-anim--slide .text-anim__word {
  height: 100%;
  transform: translateY(-100%);
}

.text-anim--slide .text-anim__word--in,
.text-anim--slide .text-anim__word--out {
  animation-duration: var(--text-anim-duration);
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-anim--slide .text-anim__word--in {
  animation-name: text-anim-slide-in;
  animation-fill-mode: forwards;
}

.text-anim--slide .text-anim__word--out {
  animation-name: text-anim-slide-out;
}

@keyframes text-anim-slide-in {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0%);
  }
}

@keyframes text-anim-slide-out {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(100%);
  }
}

/* zoom */
.text-anim--zoom {
  --text-anim-duration: 0.85s;
  --text-anim-pause: 2.5s;
}

.text-anim--zoom .text-anim__wrapper {
  perspective: 300px;
}

.text-anim--zoom .text-anim__word {
  opacity: 0;
  transform: translateZ(100px);
  transition: opacity var(--text-anim-duration), transform var(--text-anim-duration) cubic-bezier(0.215, 0.61, 0.355, 1);
}

.text-anim--zoom .text-anim__word--in {
  opacity: 1;
  transform: translateZ(0);
}

.text-anim--zoom .text-anim__word--out {
  opacity: 0;
  transform: translateZ(-100px);
}

/* push */
.text-anim--push {
  --text-anim-duration: 0.65s;
  --text-anim-pause: 2.5s;
}

.text-anim--push .text-anim__word {
  opacity: 0;
  transform: translateX(-100px);
  transition: none;
}

.text-anim--push .text-anim__word--in,
.text-anim--push .text-anim__word--out {
  transition: opacity var(--text-anim-duration), transform var(--text-anim-duration) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-anim--push .text-anim__word--in {
  opacity: 1;
  transform: translateX(0);
}

.text-anim--push .text-anim__word--out {
  opacity: 0;
  transform: translateX(100px);
}

/* clip */
.text-anim--clip {
  --text-anim-duration: 0.7s;
  --text-anim-pause: 2s;
  --text-anim-border-width: 2px;
}

.text-anim--clip .text-anim__wrapper {
  overflow: hidden;
  vertical-align: top;
}

.text-anim--clip .text-anim__wrapper::after {
  content: "";
  position: absolute;
  right: 0;
  top: calc(50% - 0.7em);
  height: 1.4em;
  width: var(--text-anim-border-width);
  background-color: hsl(342, 89%, 48%);
}

.text-anim--clip .text-anim__wrapper--pulse::after {
  animation: text-anim-pulse 0.8s infinite;
}

.text-anim--clip .text-anim__word {
  opacity: 0;
  padding-right: var(--text-anim-border-width);
}

.text-anim--clip .text-anim__word--in {
  opacity: 1;
}

@keyframes text-anim-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}