DEV Community

Freecodez
Freecodez

Posted on

2

React button component with text split animation

Hey there, You are most welcome to this article. I hope you will enjoy this article. If you like this article then please share this article with your friends and colleagues. If you have any questions or suggestions regarding this article then please comment down below.

React button component with text split animation

React button component with text split animation

For full source code visit : https://freecodez.com/post/7a7q9d8

// https://freecodez.com
const Button = (props) => {
    return (
        <div class="button">
            {props.txt.split("").map((x, i) => (
                <div data={x} key={i} class="box">{x}</div>
            ))}
        </div>
    );
};

Enter fullscreen mode Exit fullscreen mode

Source Code : https://freecodez.com/post/7a7q9d8

For more such articles visit : https://freecodez.com

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadogโ€™s testing tunnel.

Download The Guide

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free โ†’