typed: type

Description Usage Arguments Examples

View source: R/typed.R

Description

jQuery plugin that types.

Usage

1
2
3
4
5
6
7
8
typed(
  strings,
  ...,
  contentType = "html",
  width = NULL,
  height = NULL,
  elementId = NULL
)

Arguments

strings

Sentences to type, must be character vector.

...

Any other options from https://github.com/mattboldt/typed.js/#customization.

contentType

Content type, defaults to html can also be set to text.

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

elementId

Use specific element id.

Examples

1
2
3
4
5
6
7
## Not run: 
typed(c("Hello", "world"))
typed("Emphasis word <span style ='color: red;'>with html</span>.",
      contentType = "html")
typed(c("First sentence.", "Second sentence"), typeSpeed = 2)

## End(Not run)

JohnCoene/typed documentation built on Dec. 24, 2021, 8:11 p.m.