Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easy to add page transitions #106

Closed
ojvribeiro opened this issue Jan 27, 2023 · 1 comment · Fixed by #133
Closed

Make it easy to add page transitions #106

ojvribeiro opened this issue Jan 27, 2023 · 1 comment · Fixed by #133
Assignees
Labels
enhancement New feature or request 🍰 nice-to-have
Milestone

Comments

@ojvribeiro
Copy link
Owner

ojvribeiro commented Jan 27, 2023

With Vue Router we can set page transitions for a rich user experience using the Vue Transition component.

In Vulmix (since 0.6.1-beta), you can set page transitions by defining the transition name in vulmix.config.ts:

export default defineVulmixConfig({
  transition: {
    name: 'slide-fade',
  }
})

And then, creating your own transition in CSS:

.slide-fade-enter-active,
.slide-fade-leave-active {
  transition: 0.2s ease-in-out;
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  opacity: 0;
  transform: translateX(10px);
}
@ojvribeiro ojvribeiro added enhancement New feature or request 🍰 nice-to-have labels Jan 27, 2023
@ojvribeiro ojvribeiro self-assigned this Jan 27, 2023
@ojvribeiro ojvribeiro linked a pull request May 15, 2023 that will close this issue
3 tasks
@ojvribeiro ojvribeiro added this to the 0.6.1-beta milestone May 15, 2023
@ojvribeiro
Copy link
Owner Author

Completed in 39dd5d3

@ojvribeiro ojvribeiro mentioned this issue Jun 19, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🍰 nice-to-have
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant