Sha256: 98d4e4823eafd1f6bb8f555295763ec700ed197f33b393a4f807a0368546df79

Contents?: true

Size: 1.74 KB

Versions: 3

Compression:

Stored size: 1.74 KB

Contents

//
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

// MDC Ripple keyframes are split into their own file so that _mixins.scss can rely on them.

@import "@material/animation/variables";

@mixin mdc-ripple-keyframes_ {
  @keyframes mdc-ripple-fg-radius-in {
    from {
      animation-timing-function: $mdc-animation-standard-curve-timing-function;
      // NOTE: For these keyframes, we do not need custom property fallbacks because they are only
      // used in conjunction with `.mdc-ripple-upgraded`. Since MDCRippleFoundation checks to ensure
      // that custom properties are supported within the browser before adding this class, we can
      // safely use them without a fallback.
      transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);
    }

    to {
      transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
    }
  }

  @keyframes mdc-ripple-fg-opacity-in {
    from {
      animation-timing-function: linear;
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes mdc-ripple-fg-opacity-out {
    from {
      animation-timing-function: linear;
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
material_components_web-sass-0.26.0 vendor/assets/stylesheets/@material/ripple/_keyframes.scss
material_components_web-sass-0.25.0 vendor/assets/stylesheets/@material/ripple/_keyframes.scss
material_components_web-sass-0.24.0 vendor/assets/stylesheets/@material/ripple/_keyframes.scss