Animate an text element

textyle(
  element,
  color = "coral",
  easing = "easeInCubic",
  transition = 1,
  duration = 400,
  delay = 100,
  class = "ex2",
  ...
)

Arguments

element

An element.

color

string. Color of the callback

easing

string. An effect from jquery-easing.

transition

integrer. Transition in seconds

duration

integrer. Duration

delay

integrer. Delay

class

string. Class of the effect

...

Additional element

Examples

library(htmltools) textyle(h1("TITLE"))
#> <script>$(document).ready(function(){ #> $('.ex2').textyle({"duration":400,"delay":100,"easing":"easeInCubic","callback":function(){$(this).css({color : 'coral', transition : '1s'});}}); #> });</script> #> <h1 class="ex2">TITLE</h1>