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

Apply transition modifier local conditionally #7157

Open
janosh opened this issue Jan 17, 2022 · 1 comment
Open

Apply transition modifier local conditionally #7157

janosh opened this issue Jan 17, 2022 · 1 comment

Comments

@janosh
Copy link
Contributor

janosh commented Jan 17, 2022

Describe the problem

Is there a way to make transitions local conditionally?

Describe the proposed solution

Could become a transition param:

<h1 transition:fade={{ local: cond }}>Hello world!</h1>

Alternatives considered

Maybe this?

<h1 transition:fade|local:cond>Hello world!</h1>

Though that seems bad as people might then expect this to work:

<h1 transition:fade|local={cond}>Hello world!</h1>

which conflicts with current param passing mechanism.

REPL for testing if any of these already work.

Importance

nice to have

@dummdidumm
Copy link
Member

Somewhat related to #6942

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

No branches or pull requests

3 participants