Skip to content

Commit

Permalink
docs(easing): adding a list of valid function names to easing functio…
Browse files Browse the repository at this point in the history
…n docs
  • Loading branch information
gpoole authored and bhough committed Feb 1, 2024
1 parent cee9894 commit b579442
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 11 deletions.
9 changes: 6 additions & 3 deletions docs/assets/polished.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@
};

/**
* String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).
* String to represent common easing functions as demonstrated here: https://easings.net/.
* Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.
*
* @example
* // Styles as object usage
Expand Down Expand Up @@ -893,7 +894,8 @@
};

/**
* String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).
* String to represent common easing functions as demonstrated here: https://easings.net/.
* Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.
*
* @example
* // Styles as object usage
Expand Down Expand Up @@ -928,7 +930,8 @@
};

/**
* String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).
* String to represent common easing functions as demonstrated here: https://easings.net/.
* Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.
*
* @example
* // Styles as object usage
Expand Down
11 changes: 7 additions & 4 deletions docs/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2795,7 +2795,7 @@ <h3 class='fl m0' id='timingfunctions'>
</div>


<p>String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).</p>
<p>String to represent common easing functions as demonstrated here: (<a href="https://easings.net/">https://easings.net/</a>).</p>


<div class='pre p1 fill-light mt0'>timingFunctions(timingFunction: <a href="#timingfunction">TimingFunction</a>): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></div>
Expand Down Expand Up @@ -9468,7 +9468,8 @@ <h3 class='fl m0' id='easein'>
</div>


<p>String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).</p>
<p>String to represent common easing functions as demonstrated here: (<a href="https://easings.net/">https://easings.net/</a>).</p>
<p>Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.</p>


<div class='pre p1 fill-light mt0'>easeIn(functionName: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>): <a href="#timingfunction">TimingFunction</a></div>
Expand Down Expand Up @@ -9573,7 +9574,8 @@ <h3 class='fl m0' id='easeinout'>
</div>


<p>String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).</p>
<p>String to represent common easing functions as demonstrated here: (<a href="https://easings.net/">https://easings.net/</a>).</p>
<p>Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.</p>


<div class='pre p1 fill-light mt0'>easeInOut(functionName: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>): <a href="#timingfunction">TimingFunction</a></div>
Expand Down Expand Up @@ -9678,7 +9680,8 @@ <h3 class='fl m0' id='easeout'>
</div>


<p>String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).</p>
<p>String to represent common easing functions as demonstrated here: (<a href="https://easings.net/">https://easings.net/</a>).</p>
<p>Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.</p>


<div class='pre p1 fill-light mt0'>easeOut(functionName: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>): <a href="#timingfunction">TimingFunction</a></div>
Expand Down
4 changes: 3 additions & 1 deletion src/easings/easeIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const functionsMap = {
}

/**
* String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).
* String to represent common easing functions as demonstrated here: (https://easings.net/).
*
* Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.
*
* @example
* // Styles as object usage
Expand Down
4 changes: 3 additions & 1 deletion src/easings/easeInOut.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const functionsMap = {
}

/**
* String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).
* String to represent common easing functions as demonstrated here: (https://easings.net/).
*
* Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.
*
* @example
* // Styles as object usage
Expand Down
4 changes: 3 additions & 1 deletion src/easings/easeOut.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const functionsMap = {
}

/**
* String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).
* String to represent common easing functions as demonstrated here: (https://easings.net/).
*
* Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.
*
* @example
* // Styles as object usage
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/timingFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function getTimingFunction(functionName: string): string {
}

/**
* String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).
* String to represent common easing functions as demonstrated here: (https://easings.net/).
*
* @deprecated - This will be deprecated in v5 in favor of `easeIn`, `easeOut`, `easeInOut`.
*
Expand Down

0 comments on commit b579442

Please sign in to comment.