Sha256: bc7a93883d984cf1f2f7c1e36ca85b7ec80030d651d486b054faa9721e3cc9a0

Contents?: true

Size: 840 Bytes

Versions: 1

Compression:

Stored size: 840 Bytes

Contents

@import "settings.animations";

@mixin alert-keyframes {
  @keyframes alert {
    from {
      transform: scale(0);
      opacity: 0;
    }

    50% {
      transform: scale(1.02);
    }

    80% {
      transform: scale(0.95);
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }
}

@mixin alert {
  animation-name: alert;
  animation-duration: $animation-duration;
  animation-fill-mode: both;
  animation-timing-function: $animation-easing;
}

@mixin alert--top {
  transform-origin: center top;
}

@mixin alert--bottom {
  transform-origin: center bottom;
}

@mixin alert--left {
  transform-origin: left center;
}

@mixin alert--right {
  transform-origin: right center;
}

@mixin alert--slow {
  animation-duration: $animation-duration-slow;
}

@mixin alert--fast {
  animation-duration: $animation-duration-fast;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blaze-css-rails-0.0.1 app/assets/stylesheets/mixins/_animations.alerts.scss