There are ways to do this manually. You will need to create custom js .
Here is a crazy shinny app where everything revolves
#Libs require(c('shiny')) js<-"$(function() { var $elie = $('div'); rotate(25); function rotate(degree) { $elie.css({ WebkitTransform: 'rotate(' + degree + 'deg)'}); $elie.css({ '-moz-transform': 'rotate(' + degree + 'deg)'}); timer = setTimeout(function() { rotate(++degree); },100); } });" renderInputs <- function(prefix) { wellPanel( fluidRow( column(3, sliderInput(paste0(prefix, "_", "n_obs"), "View a specific date", min = as.Date('1980-05-15'), max = Sys.Date(), value = as.Date('2000-01-01'),
If you want it to rotate only one element, you need to change js as follows:
js<-"$(function() { var $elie = $(document.getElementsByClassName('form-group shiny-input-container')); rotate(270); function rotate(degree) { $elie.css({ WebkitTransform: 'rotate(' + degree + 'deg)'}); $elie.css({ '-moz-transform': 'rotate(' + degree + 'deg)'}); } });"
It still requires a bit of work to fix features like rolling and padding on the div, and adding a custom identifier to all the elements you want to rotate: this way, make sure you don't apply js to the element you don't want and get the mess out of the first example, but it should be a good starting point.
source share