Sha256: d3e1c08a9629ac6d4255b052a80fa509fdeda20a1812234520b189713146b8f8

Contents?: true

Size: 1.61 KB

Versions: 21

Compression:

Stored size: 1.61 KB

Contents

/* fading background, vertical scrolling content */

section.fade_to_black {

  background-color: transparent;

  &.invert {
    background-color: transparent;
  }

  .blackLayer {
    @include transition(1s ease);
    opacity: 0;
    background-color: black;
    height: 100%;
    width: 100%;
    position: absolute;
  }

  &.invert .blackLayer {
    background-color: white;
  }

  &.active .blackLayer {
    opacity: 1;
  }

  &.animate-in-backwards {
    display: block;
  }

  &.animate-in-forwards, &.animate-in-backwards, &.active {
    z-index: 2;
  }

  .backgroundArea {
    opacity: 0;
    background-color: black;
    -webkit-backface-visibility: hidden;
  }

  &.invert .backgroundArea {
    background-color: white;
  }

  &.animate-in-forwards .backgroundArea {
    opacity: 0;
  }
  &.animate-out-forwards .backgroundArea{
    opacity: 0;
    @include transition(1s ease);
  }
  &.animate-in-backwards .backgroundArea{
    opacity: 0;
  }
  &.animate-out-backwards .backgroundArea{
    opacity: 0;
    @include transition(1s ease);
  }

  &.active .backgroundArea {
    opacity: 1;
    @include transition(1s ease 1s);
  }

  .content {
    -webkit-backface-visibility: hidden;
    opacity: 0;
  }

  &.active div.content {
    opacity: 1;
    @include transition(1s ease 1s);
  }

  &.animate-in-forwards {
    .content {
      opacity: 0;
    }
  }
  &.animate-out-forwards {
    .content {
      opacity: 0;
      @include transition(1s ease);
    }
  }
  &.animate-in-backwards {
    .content {
      opacity: 0;
    }
  }
  &.animate-out-backwards {
    .content {
      opacity: 0;
      @include transition(1s ease);
    }
  }
}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pageflow-13.6.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.5.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.4.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.3.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.2.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-12.6.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.1.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-12.5.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-12.4.1 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.0.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.0.0.rc1 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-12.4.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-12.3.0 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.0.0.beta7 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.0.0.beta6 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.0.0.beta5 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.0.0.beta4 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.0.0.beta3 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.0.0.beta2 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss
pageflow-13.0.0.beta1 app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss