Hello,
I'm a newbie in jQuery (and html).
The animation is activated when the user push the button #btn1:
$("#btn1").click(function(){
$("#box").animate({width:"300px"});
$("#box").animate({height:"300px"});
});
Now, imagine for example I define a true/false reactive variable in the server.R file of a shiny app, by doing :
output$sleep <- reactive({
Sys.sleep(4)
return(TRUE)
})
outputOptions(output, 'sleep', suspendWhenHidden=FALSE)
What is the code I should use instead of the event $("#btn1").click in order that the animation is activated when output.sleep is true ?