This repository was archived by the owner on Jan 21, 2025. It is now read-only.
Open
Conversation
- Create a new file animate.
- Keep the origin file unchanged except the browser file.
- Set the format below a frame to declare the animation.
@(animate:{time:1000, repeat:true, width:2000, height:100})
(
animated_item_0 ... item_n
)@{className}
- Without the first line and the frame ()@{className}, the app will run normally.
- Width and height is properties of a parent SVG to contain the animated child svg.
|
An example or a test showing what's the actual animation format would help a lot to understand the code. |
|
@piranna, a demo of this feature is here: https://www.loom.com/share/a6e1bde3acfa41268aa37bad186e0312 I am personally not a fan of this animation feature because it makes typograms no longer "WYSIWYG", but I guess you always have the option to just not use it :). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Good morning Samuel Goto,
I am Khanh. I am happy to make this contribution to your repo to add an animation feature. Below is its description.
@(animate:{time:1000, repeat:true, width:2000, height:100})
(
animated_item_0 ... item_n
)@{className}
Passion: support writers to have more power to describe some key cases in their e-books.
My sixth sense told me that the code is not professional enough. If you have any ideas, please tell me. I am very happy to learn from you.