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

Luxe UI Question — badge component #42

Open
jasonkolodziej opened this issue Feb 13, 2025 · 1 comment
Open

Luxe UI Question — badge component #42

jasonkolodziej opened this issue Feb 13, 2025 · 1 comment

Comments

@jasonkolodziej
Copy link

jasonkolodziej commented Feb 13, 2025

Hi there,
Amazing work here!

I noticed that you were having some svelte 5 migration occurring.

I wanted to ask if the Badge was facing some issues showing its animation. After following the tutorial, I was able to get the styling to shape and color the span, except the animation. I wasn’t sure if this need to be wrapped in a svelte-motion element or motion-start or if it would work directly In the normal span.

Any insights would be greatly appreciated.

Notes:

@SikandarJODD
Copy link
Owner

Here is the CSS Code :

@keyframes flip {
  to {
    transform: rotate(360deg);
  }
}

@keyframes kitrotate {
  to {
    transform: rotate(90deg);
  }
}

.flip-animation {
  animation: flip 6s infinite steps(2, end);
}

.kitrotate-animation {
  animation: kitrotate 3s linear infinite both;
}

Usage :

<div class="flip-animation">Flipping Effect</div>
<div class="kitrotate-animation">Rotating Effect</div>

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