Type: Package
Title: Animate Text using the 'Animate.css' Library
Version: 0.1.0
Author: Mohamed El Fodil Ihaddaden
Maintainer: Mohamed El Fodil Ihaddaden <ihaddaden.fodeil@gmail.com>
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.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Imports: htmltools, glue
RoxygenNote: 7.1.0
URL: https://github.com/feddelegrand7/GomoGomonoMi
BugReports: https://github.com/feddelegrand7/GomoGomonoMi/issues
NeedsCompilation: no
Packaged: 2020-06-10 13:42:30 UTC; THINKPAD L390
Repository: CRAN
Date/Publication: 2020-06-16 11:30:02 UTC

Displaying the Available Animations

Description

The function displays a list of the available animations from the Animate.css library

Usage

available_animations()

Value

a list of the available animations by type of animation

Examples




available_animations()




Generate Animated Text

Description

The function animates text using the Animate.css library

Usage

gomo_gomo_no(
  text,
  level = "#",
  animation = "bounce",
  repeating = 1,
  delay = 0,
  duration = "slow",
  color = "black"
)

Arguments

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

Value

animated text

Examples



# 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")



Enable the Animate.css Library

Description

The function activates the capabilities of the animate.css library using its CDN. It should be run at the beginning of the document.

Usage

use_gomo()

Value

called for the side effect of activating the animate.css library

Examples



# Put the function at the beginning of your Rmd document or Shiny app (UI)

use_gomo()