Sha256: 47fc93636c03e84ca2f9c18f362a97ffbacd276fe5b4ddeae40f6adf76cd4701

Contents?: true

Size: 762 Bytes

Versions: 39

Compression:

Stored size: 762 Bytes

Contents

$easing-data: (
  base: cubic-bezier(0.64, 0, 0.35, 1),
  in: cubic-bezier(0.36, 0, 1, 1),
  out: cubic-bezier(0, 0, 0.42, 1),
  excite: cubic-bezier(0.18, 0.67, 0.6, 1.22),
  overshoot: cubic-bezier(0.07, 0.28, 0.32, 1.22),
  anticipate: cubic-bezier(0.38, -0.4, 0.88, 0.65),
);

/// Returns the timing-function value for a given variant.
///
/// @param {String} $variant - The key for the given variant.
/// @return {String} The cubic-bezier function (string) for the variant.

@function easing($variant: base) {
  $fetched-value: map-get($easing-data, $variant);

  @if type-of($fetched-value) == string {
    @return $fetched-value;
  } @else {
    @error 'Easing variant `#{$variant}` not found. Available variants: #{available-names($easing-data)}';
  }
}

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
polaris_view_helpers-0.0.22 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.21 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.20 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.19 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.18 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.17 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.16 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.15 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.14 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.13 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.12 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.11 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.10 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.9 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.8 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.7 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.6 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.5 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss
polaris_view_helpers-0.0.4 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss