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

Text wont fade in when is change opacity #27

Open
licavalentin opened this issue Feb 7, 2021 · 1 comment
Open

Text wont fade in when is change opacity #27

licavalentin opened this issue Feb 7, 2021 · 1 comment

Comments

@licavalentin
Copy link

licavalentin commented Feb 7, 2021

I wanted to make the text (i also have tried with images) fade in by changing its opacity, but the text just "pops up"

            var text = new fabric.Textbox("Hello Worlds");
            text.set("fill", "#ffffff");

            anim.fromTo(
                text,
                { opacity: 0 },
                { opacity: 1, duration: 1, delay: 1, ease: Power2.easeIn },
            );

            canvas.add(text);
            compose();
@BatuhanW
Copy link

@ValentinHLica You should add text first, then animate it. You are adding text after the animation is completed.

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

No branches or pull requests

2 participants