Skip to content

Does not work properly when animating font-size #70

@AlexandreBernard

Description

@AlexandreBernard

I've been trying to animate font size to avoid having a brutal glitch when fitting huge titles to the page and it does not work

If I understood properly how it's working it tries different font sizes until the span matches the container width. Am I correct?

As a suggestion I would say that if we want an animated version we could have two spans. One that only serves the purpose of determining the font-size and that should not affect the visual (position absolute and visibility hidden, container being relative) and then apply the font size only with the final result with the css transition applied to the font-size property

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions