if (interactive()){
library(shiny)
ui <- fluidPage(
icon("house") %>%
animateAppend("ring"),
h2("Append animation", class = "text-primary") %>%
animateAppend("pulse"),
br(),
h2("Nested animations", class = "text-primary") %>%
animateAppendNested("ring") %>%
animateAppendNested("pulse") %>%
animateAppendNested("passing"),
tags$span("Other things"),
h2("Nested animations display changed", class = "text-primary") %>%
animateAppendNested("ring") %>%
animateAppendNested("pulse", display = "block", style = "width: 30%"),
tags$span("Other things")
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
}
Run the code above in your browser using DataLab