Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork94
[DRAFT] feat: configurable<MotionGroup>
child element variants using:config-fn
prop#193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Draft
BobbieGoede wants to merge6 commits intovueuse:mainChoose a base branch fromBobbieGoede:feat/motion-group-config-fn-prop
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Draft
Changes from1 commit
Commits
Show all changes
6 commits Select commitHold shift + click to select a range
477f2e0
docs: add documentation for `<Motion>` component
BobbieGoede847a3ef
docs: disable `devLogs` to prevent infinite error loop
BobbieGoede4364443
docs: add basic examples to components page
BobbieGoede6ed7d30
feat: add `config-fn` prop to `<MotionGroup>`
BobbieGoede8cd9113
docs: tweak example
BobbieGoede096fa2b
fix: remove unnecessary `structuredClone`
BobbieGoedeFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
docs: add basic examples to components page
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit4364443b8489095af70c86a0a9cf0d01a9c461b9
There are no files selected for viewing
40 changes: 40 additions & 0 deletionsdocs/components/content/examples/MotionComponent.vue
This file contains hidden or 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,40 @@ | ||
<script lang="ts" setup></script> | ||
<template> | ||
<div class="example-wrapper"> | ||
<div class="example-hint">Scroll down to trigger motion!</div> | ||
<Motion is="p" preset="slideVisibleLeft"> | ||
<div class="example-target">Text in Motion!</div> | ||
</Motion> | ||
</div> | ||
</template> | ||
<style scoped> | ||
.example-wrapper { | ||
height: 200px; | ||
width: 100%; | ||
overflow-y: scroll; | ||
overflow-x: hidden; | ||
text-align: center; | ||
border: 1px solid #222; | ||
border-radius: 0.5em; | ||
} | ||
.example-hint, | ||
p { | ||
display: flex; | ||
flex: 1 0; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100%; | ||
padding: 2em; | ||
} | ||
.example-target { | ||
padding: 1em; | ||
background-color: #111; | ||
border-radius: 0.5em; | ||
} | ||
</style> |
58 changes: 58 additions & 0 deletionsdocs/components/content/examples/MotionGroupComponent.vue
This file contains hidden or 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,58 @@ | ||
<script lang="ts" setup></script> | ||
<template> | ||
<div class="example-wrapper"> | ||
<div class="example-hint">Scroll down to trigger motion!</div> | ||
<MotionGroup preset="slideVisibleLeft" :duration="600"> | ||
<section> | ||
<h3>Product 1</h3> | ||
<p>Description text</p> | ||
</section> | ||
<section> | ||
<h3>Product 2</h3> | ||
<p>Description text</p> | ||
</section> | ||
<section> | ||
<h3>Product 3</h3> | ||
<p>Description text</p> | ||
</section> | ||
</MotionGroup> | ||
</div> | ||
</template> | ||
<style scoped> | ||
.example-wrapper { | ||
height: 200px; | ||
width: 100%; | ||
overflow-y: scroll; | ||
overflow-x: hidden; | ||
text-align: center; | ||
border: 1px solid #222; | ||
border-radius: 0.5em; | ||
} | ||
.example-hint, | ||
p, | ||
section { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1 0; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100%; | ||
padding: 2em; | ||
} | ||
section { | ||
background-color: #111; | ||
height: calc(100% / 3); | ||
} | ||
section h3, | ||
section p { | ||
margin: 0.5em !important; | ||
padding: 0 !important; | ||
} | ||
</style> |
39 changes: 34 additions & 5 deletionsdocs/content/2.features/7.components.md
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.