Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

banana.gif not dancing #6

Open
Patrikios opened this issue Feb 28, 2020 · 5 comments
Open

banana.gif not dancing #6

Patrikios opened this issue Feb 28, 2020 · 5 comments

Comments

@Patrikios
Copy link

Patrikios commented Feb 28, 2020

Hi,
I am on firewall regulated network, so online access to js dependencies might be an issue. I cannot make the gifs to animate. The .gif is located in the www folder.
The example that you provide, my fav - the dancing banana, the banana just sits statically in the top right corner.
The ffox console is showing:
freezeframe.js : image not done processing ! banana.gif

Any idea what would work?

@pvictor
Copy link
Member

pvictor commented Feb 28, 2020

Hello,
Are you using the dancing banana from here : https://jeroen.github.io/images/banana.gif or from www ?
This message generally appear when images is not available.

Victor

@Patrikios
Copy link
Author

The gif is saved locally in the www folder of the shiny app directory.

@pvictor
Copy link
Member

pvictor commented Feb 28, 2020

What code did you use ?

@Patrikios
Copy link
Author

Patrikios commented Mar 2, 2020

Something along these lines:

ui <- tagList(
  useShinydashboard(),
  shinybusy::add_busy_gif(src = "banana.gif", height = 40, width = 40),
  tags$head(
                    ...),
  tags$style(
                    ...),
  navbarPage(id = "menus", ...

@Patrikios Patrikios reopened this Mar 2, 2020
@pvictor
Copy link
Member

pvictor commented Mar 2, 2020

Everything seems fine, what browser do you use ? Have you tried with an another gif ? Can you try :

library(shiny)
library(shinybusy)

ui <- fluidPage(
  add_busy_gif(
    src = logo_silex(),
    height = 100, width = 100
  ),
  actionButton("sleep", "After pressing the button, GIF should spin")
)

server <- function(input, output, session) {
  observeEvent(input$sleep, {
    Sys.sleep(5)
  })
}

shinyApp(ui, server)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants