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