Trying to add an Animation utility. Not sure why is not working! #2014
Unanswered
dceballos1991
asked this question in
Help
Replies: 3 comments 1 reply
-
My guess would be that you type sass in a css file. The content you show is using nested css. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Have you tried moving the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Your code seems to work (using SCSS): https://codepen.io/royvanv/full/YzwOpPm Tip: If you want to add a code block, please use 3 backticks instead of one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I wanted to add an animation utility for skeleton elements. This would basically do the gradient moving back and forward typical of place holder elements. This is what I added on the tailwind.scss file under @tailwind utilities;
`.loading-animation {
content: "";
display: block;
position: absolute;
left: -150px;
top: 0;
height: 100%;
width: 150px;
background: linear-gradient(
to right,
transparent 0%,
#e8e8e8 50%,
transparent 100%
);
animation: load 1s cubic-bezier(0.4, 0, 0.2, 1);
}
@Keyframes load {
from {
left: -150px;
}
to {
left: 100%;
}
}
}`
Any idea why this is not working?? Any help would be greatly appreciated 🙏🏽
Beta Was this translation helpful? Give feedback.
All reactions