Skip to content

Add support for "direction" property on <TextLoop> element#64

Open
leggetter wants to merge 2 commits intobraposo:masterfrom
leggetter:main
Open

Add support for "direction" property on <TextLoop> element#64
leggetter wants to merge 2 commits intobraposo:masterfrom
leggetter:main

Conversation

@leggetter
Copy link

Allow up or down scrolling to be set via a direction property supporting value up or down.

Added the following example:

const DirectionExample: React.FunctionComponent = (): JSX.Element => (
    <Section>
        <Title>Default</Title>
        <Example>
            <TextLoop direction="down">
                <span>Trade faster</span>
                <span>Increase sales</span>
                <span>Stock winners</span>
            </TextLoop>{" "}
            and{" "}
            <TextLoop direction="up">
                <span>be awesome</span>
                <span>win big</span>
                <span>live the dream</span>
            </TextLoop>
        </Example>
    </Section>
);

Based off of an original update by @ jaredsilver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants