Closed albert-ying closed 3 years ago
The .grow
class uses the CSS property transform
to scale up the element on hover. But transform
only applies to block element, not inline elements. Since .grow[text]
is rendered as <span class="grow">text</span>
and spans are inline elements, the transformation won't be applied.
You can get around this by making the element an inline block element. Try using .grow.dib[text]
instead.
Works like magic! Thank you!
Hi, I enabled
xaringanExtra::use_tachyons()
. After explored the document of Tachyons, I found an interesting hover animation function.grow
and.dim
.But when I put
.grow[ text ]
in the R Markdown file, it does not work. I'm wondering if this feature is supported?