Sha256: b1ab7a5d215c56cfaf4ec0b21fac262512b80cad3fc20e8f696fd7f3f2ba8c7f

Contents?: true

Size: 1.03 KB

Versions: 27

Compression:

Stored size: 1.03 KB

Contents

@if index($hamburger-types, elastic-r) {
  /*
   * Elastic Reverse
   */
  .hamburger--elastic-r {
    .hamburger-inner {
      top: $hamburger-layer-height / 2;
      transition-duration: 0.275s;
      transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);

      &::before {
        top: $hamburger-layer-height + $hamburger-layer-spacing;
        transition: opacity 0.125s 0.275s ease;
      }

      &::after {
        top: ($hamburger-layer-height * 2) + ($hamburger-layer-spacing * 2);
        transition: transform 0.275s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      }
    }

    &.is-active {
      .hamburger-inner {
        $y-offset: $hamburger-layer-spacing + $hamburger-layer-height;

        transform: translate3d(0, $y-offset, 0) rotate(-135deg);
        transition-delay: 0.075s;

        &::before {
          transition-delay: 0s;
          opacity: 0;
        }

        &::after {
          transform: translate3d(0, $y-offset * -2, 0) rotate(270deg);
          transition-delay: 0.075s;
        }
      }
    }
  }
}

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
krad-3.7.1 _sass/hamburgers/types/_elastic-r.scss
krad-3.7.0 _sass/hamburgers/types/_elastic-r.scss
krad-3.6.0 _sass/hamburgers/types/_elastic-r.scss
hamburgers-0.9.3 _sass/hamburgers/types/_elastic-r.scss
hamburgers-0.9.1 _sass/hamburgers/types/_elastic-r.scss
hamburgers-0.9.0 _sass/hamburgers/types/_elastic-r.scss
hamburgers-0.8.1 _sass/hamburgers/types/_elastic-r.scss