shinyanimate

Add animation to elements in Shiny.

https://github.com/swechhya/shinyanimate

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.1%) to scientific vocabulary

Keywords

hacktoberfest r shiny
Last synced: 9 months ago · JSON representation

Repository

Add animation to elements in Shiny.

Basic Info
Statistics
  • Stars: 39
  • Watchers: 2
  • Forks: 4
  • Open Issues: 4
  • Releases: 0
Topics
hacktoberfest r shiny
Created about 8 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

shinyanimate

version cranlogs

shinyanimate package is an R wrapper for animate.css. It allows user to easily add animations to any UI element in shiny app using the elements id.

Installation

To install the stable CRAN version: r install.packages("shinyanimate")

To install the latest development version from GitHub: r library(devtools) install_github('Swechhya/shinyanimate')

Example code

Add animation after event is observed:

r library(shiny) library(shinyanimate) ui <- fluidPage( withAnim(), div( id = 'shinyLogo', tags$img(src= "http://hexb.in/hexagons/shiny.png", width = "100px", height = "100px")), actionButton(inputId = "button", label = "Animate") ) server <- function(input, output, session) { observeEvent(input$button,{ startAnim(session, 'shinyLogo', 'shakeX') }) } shinyApp(ui, server) addAnim

Add animation on mouse hover:

r library(shiny) library(shinyanimate) ui <- fluidPage( withAnim(), div( id = 'shinyLogo', tags$img(src= "http://hexb.in/hexagons/shiny.png", width = "100px", height = "100px")) ) server <- function(input, output, session) { observe(addHoverAnim(session, 'shinyLogo', 'pulse')) } shinyApp(ui, server) hoverAnim

Add animation when the element comes into view after scrolling:

r library(shiny) library(shinyanimate) ui <- fluidPage( withAnim(), tags$h1('Scroll below to see an animation'), br(), br(), br(), br(), br(), br(), br(), br(), br(), br(), br(), br(), br(), br(), div( id = 'shinyLogo', tags$img(src= "http://hexb.in/hexagons/shiny.png", width = "100px", height = "100px")) ) server <- function(input, output, session) { observe(addScrollAnim(session, 'shinyLogo', 'bounceInRight')) } shinyApp(ui, server)

scrollAnim

Owner

  • Name: Swechhya Bista
  • Login: Swechhya
  • Kind: user
  • Location: Kathmandu, Nepal
  • Company: @leapfrogtechnology

GitHub Events

Total
Last Year

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 36
  • Total Committers: 1
  • Avg Commits per committer: 36.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Swechhya Bista s****a@g****m 36

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 6
  • Total pull requests: 10
  • Average time to close issues: almost 2 years
  • Average time to close pull requests: 1 day
  • Total issue authors: 1
  • Total pull request authors: 3
  • Average comments per issue: 0.5
  • Average comments per pull request: 0.2
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • daattali (6)
Pull Request Authors
  • Swechhya (8)
  • olivroy (2)
  • JohnCoene (1)
Top Labels
Issue Labels
hacktoberfest (3) good first issue (2) documentation (2)
Pull Request Labels
hacktoberfest-accepted (2) enhancement (1) on hold (1)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 321 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 2
  • Total versions: 4
  • Total maintainers: 1
cran.r-project.org: shinyanimate

Animation for 'shiny' Elements

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 321 Last month
Rankings
Stargazers count: 8.0%
Forks count: 12.2%
Dependent repos count: 19.1%
Average: 20.4%
Dependent packages count: 28.6%
Downloads: 33.8%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • shiny * imports