# Basic background color
bg <- background(backgroundColor = "#f0f0f0")
# Background with image
bg <- background(
backgroundImage = "https://example.com/background.jpg",
backgroundSize = "contain",
backgroundRepeat = "no-repeat",
backgroundPosition = "center"
)
# Semi-transparent background with transition
bg <- background(
backgroundColor = "#000000",
opacity = "0.3",
transition = "all 1s ease-in-out"
)
Run the code above in your browser using DataLab