Sha256: 734b3bbd3c4bef6d45e17ecf02c8506dff40612515146e55071e05d5e1ca98ef

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

@mixin translate($x: 0, $y: 0, $z: 0) {
  -webkit-transform:translate3d($x, $y, $z);
  -ms-transform:translate($x, $y);
  transform:translate3d($x, $y, $z);
}

@mixin transition($prop, $duration, $easing: ease-in-out, $delay: 0ms) {
  -webkit-transition:$prop $duration $easing $delay;
  transition:$prop $duration $easing $delay;
}

@mixin transform($val) {
  -webkit-transform:$val;
  -ms-transform:$val;
  transform:$val;
}

.csstransitions.csstransforms {
  overflow-x:hidden;

  .deck-container > .slide {
    -webkit-transition:-webkit-transform 500ms ease-in-out;
    transition:transform 500ms ease-in-out;
  }

  .deck-container:not(.deck-menu) {
    > .slide {
      position:absolute;
      top:0;
      left:0;

      .slide {
        position:relative;
        left:0;
        top:0;
        -webkit-transition:-webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out;
        transition:transform 500ms ease-in-out, opacity 500ms ease-in-out;
      }

      .deck-next, .deck-after {
        visibility:visible;
        @include translate(200%);
      }
    }

    > .deck-previous {
      @include translate(-200%);
    }

    > .deck-before {
      @include translate(-400%);
    }

    > .deck-next {
      @include translate(200%);
    }

    > .deck-after {
      @include translate(400%);
    }

    > .deck-before, > .deck-previous {
      .slide {
        visibility:visible;
      }
    }

    > .deck-child-current {
      @include transform(none);
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slippery-0.4.2 assets/deck.js/themes/transition/horizontal-slide.scss
slippery-0.4.1 assets/deck.js/themes/transition/horizontal-slide.scss
slippery-0.4.0 assets/deck.js/themes/transition/horizontal-slide.scss