Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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