-
Hi all. It is not clear to me if is possible to have animation on the admonition icon. I have created my own admonition. Nothing special, just an SVG file and some colors.
I have setup the keyframe animation on an CSS file. Just copied from the example of the documentation.
And works perfectly with "standalone" icons.
Is it possible to use the ".heart" keyframe with the icon definition of the admonition? Or somewhere else? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, probably something like (untested): .md-typeset .about > .admonition-title::before,
.md-typeset .about > description::before {
animation: heart 1000ms infinite;
} I encourage you to learn CSS, it's actually quite simple and you can customize Material for MkDocs easily. |
Beta Was this translation helpful? Give feedback.
Yes, probably something like (untested):
I encourage you to learn CSS, it's actually quite simple and you can customize Material for MkDocs easily.