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

Typewriter effect in reverse #87

Open
usmanpakistan opened this issue Mar 14, 2023 · 1 comment
Open

Typewriter effect in reverse #87

usmanpakistan opened this issue Mar 14, 2023 · 1 comment
Labels

Comments

@usmanpakistan
Copy link
Contributor

Hi @daybrush

Any idea how can we run the typewriter effect in reverse? I have tried the sceneItem.setDirection but it does not produce the desired effect. Please see the attached gif as a visual example of the effect I need
1bd625c473bc82a2e8f053af7a34399c

Secondly can we integrate other animation libraries to produce effects not available in this library.?

@daybrush
Copy link
Owner

daybrush commented Mar 15, 2023

@usmanpakistan

Try using direction: "reverse".

or try something like this

typingItem.setDirection("reverse");

const sceneItem = new SceneItem();
sceneItem.set(typingItem);

If not, how can I know which sceneItem or scene the typing code is applied to?

It provides something called @scenejs/effect, but it is typed by character.

import { typing } from "@scenejs/effects";

typing({
    text: "Make a typing effect with Scene.js.",
    duration: 7,
    delay: 1,
    direction: "reverse",
  })

https://codepen.io/daybrush/pen/ydOVPW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants