-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Can't get animations working #180
Comments
Hi, In the example, the .notification {
margin-top: -.25rem;
margin-right: -.25rem;
height: .75rem;
width: .75rem;
} Or you can have the inline version like this: <div class="u-center h-100p">
<div class="u-relative u-inline-flex">
<div class="u-round-xs u-shadow-lg p-3 bg-blue-100">
<div class="u-flex u-items-center u-gap-2">
<div>
<div class="avatar"><img src="https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?s=128"></div>
</div>
<div><b>3 new unopened messages in the last hour.</b>
<div class="text-gray-600">@johndoe sent "About your PR, it's mostly good but..."</div>
</div>
</div>
</div>
<span class="w-2 h-2 u-inline-flex u-absolute" style="top: -.25rem; right: -.25rem"><span class="w-100p h-100p u-absolute u-inline-flex animated ping bg-blue-400 u-round-full"></span><span class="h-100p w-100p u-inline-flex bg-blue-400 u-round-full"></span></span>
</div>
</div> I will update the documentation to make it clearer that the |
…ot being part of the framework #180
Resolving |
I don't think this issue is related to #172 because the example animations work fine on my Mac in both Chrome and Safari.
The problem comes when I try to use animations in my own page. I want to use the ping animation. Copying and pasting the example code doesn't show anything to do with the animation. I can't see any difference between the demonstration and example (except that the notification images' order is swapped and that doesn't make a difference). I have tried recreating the hierarchy of navigation divs, sections, etc., but this does not make any difference.
If I remove the outer
span
, then I get large versions of the images at the bottom, with one animating. It seems to be something to do with the size/placement. In the demonstration, the notification element is 12px x 12px but there isn't anything visible in my version and inspect element suggests the circles are 0px x 0px.This doesn't work:
Any suggestions as to what I am doing wrong?
The text was updated successfully, but these errors were encountered: