Skip to content

Token transitions color transition errors #457

Closed
@jyecusch

Description

@jyecusch

Hey, first this library is incredible.

I've noticed some odd behavior with colors when using token transitions, where the tokens end up the wrong color.

Here is an example recorded on the Scrollycoding page on the docs:

transitions-color-error.mp4

This is in Chrome, but the same occurs in Firefox and Safari.

I can see something similar on the Token Transitions page, where the opening parenthesis in if (n == 0) turns blue when switching from scala to python and back to scala.

Token_Transitions___Code_Hike

The strange thing is that if you inspect those elements, they have the correct color set on their inline style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions