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

[feature]: x-breeze-sequence #9

Open
sagalbot opened this issue Oct 25, 2020 · 0 comments
Open

[feature]: x-breeze-sequence #9

sagalbot opened this issue Oct 25, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@sagalbot
Copy link
Owner

Most of the time entrances need to be timed with other entrances. Using delay- is a decent workaround, but in Tailwind land, you're immediately limited by the number of delay classes. It'd be great if there was a first party API for handling sequences.

Potential directive API:

  • x-breeze-sequence: a string representing the sequence this element belongs to
  • x-breeze-sequence-position: the position in the sequence for this element
      <h1
        class="transition duration-200"
        x-breeze-from="opacity-0"
        x-breeze-sequence="someUniqueIdentifier"
        x-breeze-sequence-position="1"
      >
        This one will kick off a sequence.
      </h1>

      <h1
        class="transition duration-200"
        x-breeze-from="opacity-0 translate-y-5"
        x-breeze-sequence="someUniqueIdentifier"
        x-breeze-sequence-position="2"
      >
        This one will schedule it's transition after the first element has completed.
      </h1>
@sagalbot sagalbot added the enhancement New feature or request label Oct 25, 2020
@sagalbot sagalbot added this to the v1.0 milestone Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant