-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
2,401 additions
and
1,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: 🐞 Bug report | ||
description: Report an issue with unocss-preset-animations | ||
labels: [pending triage] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! If you have a usage question | ||
or are unsure if this is really a bug, make sure to: | ||
- Read the [documentation](https://unocss-preset-animations.aelita.me/) of using the package | ||
- Ask on [GitHub Discussion](https://github.com/xsjcTony/unocss-preset-animations/discussions) | ||
- type: input | ||
id: version | ||
attributes: | ||
label: unocss-preset-animations version | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: bug-description | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks! | ||
placeholder: Bug description | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproduction | ||
attributes: | ||
label: Reproduction | ||
description: Please provide a link to [StackBlitz](https://stackblitz.com/edit/vitejs-vite-lbg2ww?file=src%2FApp.tsx) or a github repo that can reproduce the problem you ran into. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem. [Why reproduction is required](https://antfu.me/posts/why-reproductions-are-required). | ||
placeholder: Reproduction | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: system-info | ||
attributes: | ||
label: System Info | ||
placeholder: System, Browsers, Framework | ||
validations: | ||
required: false | ||
- type: checkboxes | ||
id: checkboxes | ||
attributes: | ||
label: Validations | ||
description: Before submitting the issue, please make sure you do the following | ||
options: | ||
- label: Check that there isn't [already an issue](https://github.com/xsjcTony/unocss-preset-animations/issues) that reports the same bug to avoid creating a duplicate | ||
required: true | ||
- label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/xsjcTony/unocss-preset-animations/discussions) | ||
required: true | ||
- label: The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 🚀 New feature proposal | ||
description: Propose a new feature to be added to unocss-preset-animations | ||
labels: ['enhancement: pending triage'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for your interest in the project and taking the time to fill out this feature report! | ||
- type: textarea | ||
id: feature-description | ||
attributes: | ||
label: Clear and concise description of the problem | ||
description: 'As a developer using unocss-preset-animations I want [goal / wish] so that [benefit]. If you intend to submit a PR for this issue, tell us in the description. Thanks!' | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: suggested-solution | ||
attributes: | ||
label: Suggested solution | ||
description: We could provide following implementation... | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: alternative | ||
attributes: | ||
label: Alternative | ||
description: Clear and concise description of any alternative solutions or features you've considered. | ||
- type: textarea | ||
id: additional-context | ||
attributes: | ||
label: Additional context | ||
description: Any other context or screenshots about the feature request here. | ||
- type: checkboxes | ||
id: checkboxes | ||
attributes: | ||
label: Validations | ||
description: Before submitting the issue, please make sure you do the following | ||
options: | ||
- label: Read the [documentation](https://unocss-preset-animations.aelita.me/) of using the package | ||
required: true | ||
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
daysUntilStale: 60 | ||
daysUntilClose: 7 | ||
exemptLabels: | ||
- pinned | ||
- security | ||
- no-stale | ||
- no stale | ||
- pr welcome | ||
staleLabel: stale | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
closeComment: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,5 @@ export default { | |
}), | ||
enhanceApp({ app, router, siteData }) { | ||
// ... | ||
} | ||
}, | ||
} satisfies Theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- | ||
outline: [2, 3] | ||
next: Animations | ||
--- | ||
|
||
# Animation Properties | ||
|
||
Animation property modifiers are supported by `@unocss/preset-wind` or `@unocss/preset-uno`. | ||
|
||
## `animation-delay` | ||
|
||
```html | ||
<button class="animate-in fade-in animate-delay-150">Button A</button> | ||
<button class="animate-in fade-in animate-delay-300">Button B</button> | ||
<button class="animate-in fade-in animate-delay-700">Button C</button> | ||
``` | ||
|
||
## `animation-direction` | ||
|
||
```html | ||
<button class="animate-in fade-in animate-normal">Button A</button> | ||
<button class="animate-in fade-in animate-reverse">Button B</button> | ||
<button class="animate-in fade-in animate-alternate">Button C</button> | ||
<button class="animate-in fade-in animate-alternate-reverse">Button D</button> | ||
|
||
<button class="animate-in fade-in animate-direction-normal">Button E</button> | ||
``` | ||
|
||
## `animation-duration` | ||
|
||
```html | ||
<button class="animate-in fade-in animate-duration-150">Button A</button> | ||
<button class="animate-in fade-in animate-duration-300">Button B</button> | ||
<button class="animate-in fade-in animate-duration-700">Button C</button> | ||
``` | ||
|
||
::: tip | ||
If no `animation-duration` is defined, it will fall back to `theme.duration.DEFAULT`. | ||
|
||
The value is `150ms` by default if unchanged, see [unocss/packages/preset-mini/src/_theme/misc.ts at main · unocss/unocss](https://github.com/unocss/unocss/blob/efdc358897a308323e1d943dd0f7c13e344e1495/packages/preset-mini/src/_theme/misc.ts#L37) | ||
::: | ||
|
||
## `animation-fill-mode` | ||
|
||
```html | ||
<button class="animate-in fade-in animate-none">Button A</button> | ||
<button class="animate-in fade-in animate-forwards">Button B</button> | ||
<button class="animate-in fade-in animate-backwards">Button C</button> | ||
<button class="animate-in fade-in animate-both">Button D</button> | ||
|
||
<button class="animate-in fade-in animate-fill-none">Button E</button> | ||
<button class="animate-in fade-in animate-mode-none">Button F</button> | ||
<button class="animate-in fade-in animate-fill-mode-none">Button G</button> | ||
``` | ||
|
||
## `animation-iteration-count` | ||
|
||
```html | ||
<button class="animate-in fade-in animate-iteration-0">Button A</button> | ||
<button class="animate-in fade-in animate-iteration-1">Button B</button> | ||
<button class="animate-in fade-in animate-iteration-infinite">Button C</button> | ||
|
||
<button class="animate-in fade-in animate-count-0">Button D</button> | ||
<button class="animate-in fade-in animate-iteration-count-0">Button E</button> | ||
``` | ||
|
||
## `animation-play-state` | ||
|
||
```html | ||
<button class="animate-in fade-in animate-paused">Button A</button> | ||
<button class="animate-in fade-in animate-running">Button B</button> | ||
|
||
<button class="animate-in fade-in animate-play-paused">Button C</button> | ||
<button class="animate-in fade-in animate-state-paused">Button D</button> | ||
<button class="animate-in fade-in animate-play-state-paused">Button E</button> | ||
``` | ||
|
||
## `animation-timing-function` | ||
|
||
```html | ||
<button class="animate-in fade-in animate-ease-linear">Button A</button> | ||
<button class="animate-in fade-in animate-ease-in">Button B</button> | ||
<button class="animate-in fade-in animate-ease-out">Button C</button> | ||
<button class="animate-in fade-in animate-ease-in-out">Button D</button> | ||
``` | ||
|
||
## Prefers reduced motion | ||
|
||
```html | ||
<button class="motion-reduce:...">Button A</button> | ||
<button class="motion-safe:...">Button B</button> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.