slidevjs / slidev

Presentation Slides for Developers
https://sli.dev
MIT License
32.82k stars 1.33k forks source link

Per slide transition ignored #1752

Closed GioPan04 closed 2 months ago

GioPan04 commented 2 months ago

Describe the bug

If I set a transition propriety in the frontmatter of a slide, the transition will be ignored and the default one (set in the initial page frontmatter) will play.

Minimal reproduction style.css

.my-transition-enter-active,
.my-transition-leave-active {
    transition: opacity 0.5s ease;
}

.my-transition-enter-from,
.my-transition-leave-to {
    opacity: 0;
}

slides.md

---
theme: seriph
# transition: fade-out
mdc: true
---

# Test slide

---

# Another slide

---
transition: my-transition
---

# Last slide

Steps to reproduce the behavior:

Just copy and paste the slides.md and style.css files into a new project and run

Environment

GioPan04 commented 2 months ago

Today seems to be working... And the code it's the same...