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

[Transition experiment] Follow up the latest spec of API #457

Merged
merged 5 commits into from
Jun 4, 2022

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Jun 4, 2022

  • Make resilience from API error
    • If there were duplicated page-transition-tag by the custom CSS, the slide had been not navigatable by failure of DocumentTransition.prototype.start. When caught an error while running page.start(), we will fallback to the regular navigation.
  • Update the base style for transition with shared elements.
    • General cross-fading animation is set also to transition tags declared by users. It allows transition with the shared elements, just like PowerPoint's Morph and Keynote's Magic Move!

---
marp: true
theme: gaia
_class: lead
transition: slide 1s
style: |
  section > h1:first-of-type {
    contain: paint;
    page-transition-tag: title;
  }
  img[alt~="shared"] {
    contain: paint;
    page-transition-tag: image;
  }
---

![shared w:400](https://marp.app/assets/marp.svg)

# Transition with shared element

---

# It's a Magic! 🪄

![shared w:500](https://media1.giphy.com/media/ujUdrdpX7Ok5W/giphy.gif)

@yhatt yhatt merged commit 808930a into main Jun 4, 2022
@yhatt yhatt deleted the shared-element-transition branch June 4, 2022 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant