﻿/* -------------------------------- 

File#: _1_scrolling-animations
Title: Scrolling Animations
Descr: Scrolling animations plugin
Usage: codyhouse.co/license

-------------------------------- */
:root {
  --scroll-fx-translate-x: 0;
  --scroll-fx-translate-y: 0;
  --scroll-fx-translate-z: 0;
  --scroll-fx-rotate-x: 0;
  --scroll-fx-rotate-y: 0;
  --scroll-fx-rotate-z: 0;
  --scroll-fx-skew-x: 0;
  --scroll-fx-skew-y: 0;
  --scroll-fx-scale-x: 1;
  --scroll-fx-scale-y: 1;
  --scroll-fx-opacity: 1;
  --scroll-fx-stroke-dashoffset: 0;
}

.scroll-fx {
  transform: translate3d(var(--scroll-fx-translate-x), var(--scroll-fx-translate-y), var(--scroll-fx-translate-z)) rotateX(var(--scroll-fx-rotate-x)) rotateY(var(--scroll-fx-rotate-y)) rotateZ(var(--scroll-fx-rotate-z)) skewX(var(--scroll-fx-skew-x)) skewY(var(--scroll-fx-skew-y)) scaleX(var(--scroll-fx-scale-x)) scaleY(var(--scroll-fx-scale-y)) !important;
  opacity: var(--scroll-fx-opacity) !important;
  stroke-dashoffset: var(--scroll-fx-stroke-dashoffset) !important;
}

.scroll-fx.scroll-fx--theme-transition,
.scroll-fx.scroll-fx--theme-transition > * {
  transition: 0.3s;
}

@media (min-width: 32rem) {
  .scroll-fx\@xs {
    transform: translate3d(var(--scroll-fx-translate-x), var(--scroll-fx-translate-y), var(--scroll-fx-translate-z)) rotateX(var(--scroll-fx-rotate-x)) rotateY(var(--scroll-fx-rotate-y)) rotateZ(var(--scroll-fx-rotate-z)) skewX(var(--scroll-fx-skew-x)) skewY(var(--scroll-fx-skew-y)) scaleX(var(--scroll-fx-scale-x)) scaleY(var(--scroll-fx-scale-y)) !important;
    opacity: var(--scroll-fx-opacity) !important;
    stroke-dashoffset: var(--scroll-fx-stroke-dashoffset) !important;
  }
  .scroll-fx\@xs.scroll-fx--theme-transition,
.scroll-fx\@xs.scroll-fx--theme-transition > * {
    transition: 0.3s;
  }
}
@media (min-width: 48rem) {
  .scroll-fx\@sm {
    transform: translate3d(var(--scroll-fx-translate-x), var(--scroll-fx-translate-y), var(--scroll-fx-translate-z)) rotateX(var(--scroll-fx-rotate-x)) rotateY(var(--scroll-fx-rotate-y)) rotateZ(var(--scroll-fx-rotate-z)) skewX(var(--scroll-fx-skew-x)) skewY(var(--scroll-fx-skew-y)) scaleX(var(--scroll-fx-scale-x)) scaleY(var(--scroll-fx-scale-y)) !important;
    opacity: var(--scroll-fx-opacity) !important;
    stroke-dashoffset: var(--scroll-fx-stroke-dashoffset) !important;
  }
  .scroll-fx\@sm.scroll-fx--theme-transition,
.scroll-fx\@sm.scroll-fx--theme-transition > * {
    transition: 0.3s;
  }
}
@media (min-width: 64rem) {
  .scroll-fx\@md {
    transform: translate3d(var(--scroll-fx-translate-x), var(--scroll-fx-translate-y), var(--scroll-fx-translate-z)) rotateX(var(--scroll-fx-rotate-x)) rotateY(var(--scroll-fx-rotate-y)) rotateZ(var(--scroll-fx-rotate-z)) skewX(var(--scroll-fx-skew-x)) skewY(var(--scroll-fx-skew-y)) scaleX(var(--scroll-fx-scale-x)) scaleY(var(--scroll-fx-scale-y)) !important;
    opacity: var(--scroll-fx-opacity) !important;
    stroke-dashoffset: var(--scroll-fx-stroke-dashoffset) !important;
  }
  .scroll-fx\@md.scroll-fx--theme-transition,
.scroll-fx\@md.scroll-fx--theme-transition > * {
    transition: 0.3s;
  }
}
@media (min-width: 80rem) {
  .scroll-fx\@lg {
    transform: translate3d(var(--scroll-fx-translate-x), var(--scroll-fx-translate-y), var(--scroll-fx-translate-z)) rotateX(var(--scroll-fx-rotate-x)) rotateY(var(--scroll-fx-rotate-y)) rotateZ(var(--scroll-fx-rotate-z)) skewX(var(--scroll-fx-skew-x)) skewY(var(--scroll-fx-skew-y)) scaleX(var(--scroll-fx-scale-x)) scaleY(var(--scroll-fx-scale-y)) !important;
    opacity: var(--scroll-fx-opacity) !important;
    stroke-dashoffset: var(--scroll-fx-stroke-dashoffset) !important;
  }
  .scroll-fx\@lg.scroll-fx--theme-transition,
.scroll-fx\@lg.scroll-fx--theme-transition > * {
    transition: 0.3s;
  }
}
@media (min-width: 90rem) {
  .scroll-fx\@xl {
    transform: translate3d(var(--scroll-fx-translate-x), var(--scroll-fx-translate-y), var(--scroll-fx-translate-z)) rotateX(var(--scroll-fx-rotate-x)) rotateY(var(--scroll-fx-rotate-y)) rotateZ(var(--scroll-fx-rotate-z)) skewX(var(--scroll-fx-skew-x)) skewY(var(--scroll-fx-skew-y)) scaleX(var(--scroll-fx-scale-x)) scaleY(var(--scroll-fx-scale-y)) !important;
    opacity: var(--scroll-fx-opacity) !important;
    stroke-dashoffset: var(--scroll-fx-stroke-dashoffset) !important;
  }
  .scroll-fx\@xl.scroll-fx--theme-transition,
.scroll-fx\@xl.scroll-fx--theme-transition > * {
    transition: 0.3s;
  }
}
.demo-scroll-fx-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
}
.demo-scroll-fx-grid > *:nth-child(1) {
  grid-column: 1/4;
  grid-row: 1/-1;
}
.demo-scroll-fx-grid > *:nth-child(2) {
  grid-column: 3/7;
  grid-row: 2/5;
}