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
Universal Magic Move #1527
Labels
Comments
KermanX
added
enhancement
New feature or request
clicks system
about clicks animations
labels
Apr 13, 2024
Open
Found a relative tweet about KaTex magic move: https://x.com/FreyaHolmer/status/1782498316330103180 |
Would https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API be the universal solution? But I suppose in order to have good animations (like Shiki and KaTex), it has to be specific at some extent to know what to animate. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally posted by @lucaslrodri in #1515 (comment)
It would be nice if the universal
magic-move
were inspired by Reveal.js Auto-Animate. In summary, Auto-Animate considers matching elements if they have:id
(Priority - see thedata-auto-animate-id
attribute, explained here).src
attribute is compared.For situations where the automatic-matching algorithm is not feasible or does not provide the correct matching, you can add the
data-magic-id
property to the elements you want to animate. This property is prioritized over automatic matching.In addition to the features of Auto-Animate, the following considerations can be taken into account:
shiki-magic-move
algorithm.magic-move
in KaTeX equations. I believe that with this implementation, it's possible to create transitions like this one done in Manim. I'm not sure exactly how to do the implementation in this case, but I consider two possibilities:shiki-magic-move
.<span>
tags.\htmlData{magic-id=a}{x}
(or similar) to implement the transition functionality between elements with the sameid
.x
,y
),fill
,stroke
,d
(<path>
),width
andheight
(rect
)Finally, users can modify (or extend) the automatic-matching algorithm, as is possible in Reveal.js Auto-Animate, by writing a custom automatic matching function, opening up the possibility of implementing plugins based on the
magic-move
feature.The text was updated successfully, but these errors were encountered: