-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Transitions not working with vue-cli and Vue >= 3.0.6 #6328
Comments
There is no css in your Home.vue. Are you trying to say that input <style scoped>
.bounce-enter-active {
animation: bounce-in 5s;
}
.bounce-leave-active {
animation: bounce-in 5s reverse;
}
@keyframes bounce-in {
0% {
transform: scale(0);
}
50% {
transform: scale(1.25);
}
100% {
transform: scale(1);
}
}
</style> output Something like this is wrong .bounce-enter-active[data-v-fae5bece] {
-webkit-animation: bounce-in-fae5bece 5s;
animation: bounce-in-fae5bece 5s;
}
.bounce-leave-active[data-v-fae5bece] {
animation: bounce-in-fae5bece 5s reverse;
}
@-webkit-keyframes bounce-in-fae5bece {
{
transform: scale(0);
}
50%[data-v-fae5bece] {
transform: scale(1.25);
}
100%[data-v-fae5bece] {
transform: scale(1);
}
}
@keyframes bounce-in-fae5bece {
0%[data-v-fae5bece] {
transform: scale(0);
}
50%[data-v-fae5bece] {
transform: scale(1.25);
}
100%[data-v-fae5bece] {
transform: scale(1);
}
} |
This bug can be solved by pr vuejs/core#3308 |
Close since this bug is tracked in |
Thanks. You are right despite my badly rushed reproduction code and not noticing it only doesn't work when keyframes are scoped so I didn't suspect an upstream issue. |
Version
4.5.11
Reproduction link
https://github.com/netopolit/vue-cli-transition-issue
Environment info
Steps to reproduce
What is expected?
Clicking on "Toggle show" button should cause text bellow the button to animate
What is actually happening?
There is no animation. Transition is not working
This feature should work with Vue 3.0.6 and 3.0.7, as demonstrated here https://jsfiddle.net/8b1ced2m/
The text was updated successfully, but these errors were encountered: