Custom Theming
An R Shiny application for tracking your treats and exercises over the Christmas period. We've created this app for Christmas 2018 and it shows how you can custom-theme sliders and other UI elements. It also demonstrates how you can blend in images based on reactive values and add hovers to it.
See it in action here
Our customisation
- Slider images
- Animated plots
- Themed loading spinners
As well as extending standard Shiny components like:
- Alerts and feedback
- Tooltips and modals
Slider images
Customise your sliders by adding a custom background-image.
.irs-slider {
background-image: url(../img/Icons/Exercise_presents.svg);
}Animate plots
We use Plotly for our charts. Add CSS animations to bring them to life.
.trace.bars g.point path {
transform: scaleX(0);
animation: extend-bar 1s forwards ease;
}Themed loading spinners
Listen out for the shiny-busy lifecycle event to add an overlay for when the app is loading. Shiny attaches a .shiny-busy class for this.
We use Plotly for our charts. Add CSS animations to bring them to life.
.shiny-busy #loadingOverlay{
opacity: 1;
visibility: visible;
}Code created by Epi-interactive
As always, our expert team is here to help if you want custom training, would like to take your dashboards to the next level or just need an urgent fix to keep things running. Just get in touch for a chat.