Learn R Programming

vov (version 0.1.2)

swivel_vertical_double: Swivel vertical double

Description

Animation to swivel a UI element vertically, twice.

Usage

swivel_vertical_double(
  ui,
  duration = NULL,
  delay = NULL,
  steps = NULL,
  iteration = NULL
)

Arguments

ui

A UI element

duration

Duration of animation

delay

Delay in seconds before animation starts

steps

Animation steps

iteration

Iteration of animation

Details

  • Duration expects one of: "fast" = 800 milliseconds, "faster" = 500 milliseconds, "fastest" = 300 milliseconds, "slow" = 2 seconds, "slower" = 3 seconds, "slowest" = 4 seconds,

  • Delay expects one of: 0, 1, 2, 3, 4, 5, no delay if left NULL

  • Steps expects one of: 10, 20, 30, 40, 50, no steps if left NULL

  • Iteration expects one of: 1, 2, 3, 4, 5, infinite, no iteration if left NULL

Examples

Run this code
# NOT RUN {
if (interactive()) {
  library(shiny)
  library(vov)

  ui <- fluidPage(
    use_vov(),
    swivel_vertical_double(
      h1("Hello world!")
    )
  )

  server <- function(input, output, session) {}

  shinyApp(ui, server)
}
# }

Run the code above in your browser using DataLab