Skip to content

Combine with Tailwind hover:scale-x #37

Discussion options

You must be logged in to vote

.animate-none didn't work, even associated with !important @milesingrams.
So as you suggested @mattaningram, I found a workaround. I created a component to check when the animation is done.

HoverableAnimated.vue

<template>
  <div class="xyz-nested" ref="el">
    <slot />
  </div>
</template>

<script>
export default {
  props: ["endClass"],
  mounted() {
    let el = this.$refs.el;
    el.addEventListener("animationend", () => {
      el.classList.remove("xyz-nested");
      el.classList.add(this.$props.endClass);
    });
  }
};
</script>

And I use it like:

<HoverableAnimated
v-for="(e, i) in skills"
:key="i"
xyz="delay-8 small fade stagger-2 ease-out-back"
class="flex justify-center px-6…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@milesingrams
Comment options

Comment options

You must be logged in to vote
3 replies
@milesingrams
Comment options

@florian-lefebvre
Comment options

@florian-lefebvre
Comment options

Answer selected by mattaningram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants