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

Exported animations show initial state instead of finished state #1979

Open
Fuzzyma opened this issue Dec 7, 2024 · 3 comments
Open

Exported animations show initial state instead of finished state #1979

Fuzzyma opened this issue Dec 7, 2024 · 3 comments

Comments

@Fuzzyma
Copy link

Fuzzyma commented Dec 7, 2024

Describe the bug

When exporting to pdf, all my animated elements are displayed as if the animation never played and only the initial state stuck.

This is how it should look like after the animation
grafik

This is how it gets exported
grafik

I tried timeouts, tried adding a :leave attribute and tried exporting with and without clicks. Always the same problem.
I also noticed that when leaving a page with ArrowDown all elements appear in their initial state as well before it transitions to the next page. So maybe its related to that?

Minimal reproduction

The slide I created looks like this:

---

<img src="/editor.jpg" class="absolute left-30px top-30px shadow-lg border light:border-[#ccc] dark:border-[#333]">
<div v-click v-motion :initial="{translateX: '-10%'}" :enter="{translateX: '0%'}" class="absolute inset-0">
  <Arrow x1="585" x2="685" y1="150" y2="150" />
  <img src="/icon.jpg" class="absolute left-720px top-100px">
</div>

Environment

  • Slidev version: v0.50.0-beta.10
  • Browser: Doesnt apply
  • OS: WSL on Win 10
@jonasfroeller
Copy link

Same issue with code animations.

@jonasfroeller
Copy link

Also videos are not embedded. (Adobe Acrobat Reader would support it for example) I think it would be good, to just use the first frame of the video instead, because not many pdf-readers support videos.

@KermanX
Copy link
Member

KermanX commented Dec 10, 2024

Sorry for the late reply. A workaround is to install @slidev/cli and @slidev/client from the urls listed in #1972 (comment), and open the new exporting UI to export the slides (only supports chrome/edge).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants