Explicit duration for <transition>
See original GitHub issueProposed change
Add the option to pass the total transition duration in seconds wia a new prop:
<!-- Both enter and leave explicit total duration -->
<transition name="complex-animation" duration="1.5">
<!-- Specific enter and leave explicit total durations -->
<transition name="complex-animation" duration-enter="1.5" duration-leave="2">
What does it solves?
Here is an example transition that demonstrate that the duration automatically detected by Vue can be wrong because of nested css transitions with different durations or delays:
/* Modal */
.modal-enter-active {
transition: opacity .3s;
.modal-dialog {
transition: opacity .3s .15s, transform .3s .15s;
}
}
.modal-leave-active {
transition: opacity .3s .15s;
.modal-dialog {
transition: opacity .3s, transform .3s;
}
}
.modal-enter,
.modal-leave-active {
opacity: 0;
.modal-dialog {
opacity: 0;
transform: translateY(-40px);
}
}
Here the transition should last .45 s, but Vue only detect the first transition duration .3s for the enter part.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Deep Explicit Duration Switching Models for Time Series
We propose the Recurrent Explicit Duration Switching Dynamical ... transition/emission distributions parameterized by neural networks [25, 19, 13, 30].
Read more >Explicit-Duration Hidden Markov Model Inference of UP ...
Here we present an explicit-duration hidden Markov model (EDHMM) ... Alignment of state transition times to a new observation sequence can ...
Read more >Appropriate Use of Explicit Transitions - Video Transcripts
Video Length: 2:10. Visual: Walden logo at bottom of screen along with notepad and pencil background. Audio: Guitar music.
Read more >Inference in Explicit Duration Hidden Markov Models
Explicit Duration HMM / H. Semi-Markov Model. [Mitchell et al., 1995, Murphy, 2002, ... State transition structure can't go from infected to pre-infection....
Read more >Using CSS transitions - CSS: Cascading Style Sheets | MDN
With CSS transitions enabled, changes occur at time intervals that ... you decide which properties to animate (by listing them explicitly), ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My 2 cents
An alternative to:
could be
Closed via #4857