Title: | Animate Text using the 'Animate.css' Library |
---|---|
Description: | Allows the user to animate text within 'rmarkdown' documents and 'shiny' applications. The animations are activated using the 'Animate.css' library. See <https://animate.style/> for more information. |
Authors: | Mohamed El Fodil Ihaddaden [aut, cre] |
Maintainer: | Mohamed El Fodil Ihaddaden <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-10-25 05:31:46 UTC |
Source: | https://github.com/feddelegrand7/gomogomonomi |
The function displays a list of the available animations from the Animate.css library
available_animations()
available_animations()
a list of the available animations by type of animation
available_animations()
available_animations()
The function animates text using the Animate.css library
gomo_gomo_no( text, level = "#", animation = "bounce", repeating = 1, delay = 0, duration = "slow", color = "black" )
gomo_gomo_no( text, level = "#", animation = "bounce", repeating = 1, delay = 0, duration = "slow", color = "black" )
text |
The text that should be animated |
level |
The Markdown level of the text, available are : #, ##, ###, ####, #####, ######, text. Default to "#" |
animation |
The type of animation. Default to "bounce". |
repeating |
Number of times the animation is repeated (from 1 to 3). Default to 1 |
delay |
Time before triggering the animation (in seconds). Default to 0 |
duration |
The speed of the animation, available choices are: "slow", "slower", "fast", "faster". Default to "slow" |
color |
the color of the animated text |
animated text
# Put use_gomo() at the beginning of your Rmd Document or Shiny App (UI) use_gomo() # Then call gomo_gomo_no() wherever you want to animate your text gomo_gomo_no(text = "I Love Chocolate !!!!", level = "###", animation = "tada")
# Put use_gomo() at the beginning of your Rmd Document or Shiny App (UI) use_gomo() # Then call gomo_gomo_no() wherever you want to animate your text gomo_gomo_no(text = "I Love Chocolate !!!!", level = "###", animation = "tada")
The function activates the capabilities of the animate.css library using its CDN. It should be run at the beginning of the document.
use_gomo()
use_gomo()
called for the side effect of activating the animate.css library
# Put the function at the beginning of your Rmd document or Shiny app (UI) use_gomo()
# Put the function at the beginning of your Rmd document or Shiny app (UI) use_gomo()