Skip to content

<!--fit--> could also auto-scale vertically #437

Answered by yhatt
eyssette asked this question in Ideas
Discussion options

You must be logged in to vote

Applying vertical fit library such as textFit and Fitty is technically possible through Web Component, but Marp team is not taking them due to issue about performance, rich contents, and the goal of ecosystem (less client JavaScript).

textFit requires many attempts to change the font size and render the text, for finding out the comfortable font size, and actually has optimized processing time to be minimal. However, in certain cases like following, calculating font size may bring many times and affect to rendering performance.

<style scoped>
  @keyframes scale {
    to { width: 3em; height: 3em }
  }
  img {
    animation: 1s ease-in-out 0s infinite alternate scale;
  }
</style>

# Marp :+1

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yhatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
wontfix This will not be worked on
2 participants