material_parallax: Create a parallax image

Description Usage Arguments Examples

View source: R/shiny-material-parallax.R

Description

Use this function to create a parallax effect in your application.

Usage

1
material_parallax(image_source)

Arguments

image_source

String. The image file name. Place the image in a folder labeled 'www' at the same level as the application (server.R & ui.R).

Examples

1
2
3
material_parallax(
  image_source = "example_image.jpg"
)

Example output

<div class="parallax-container">
  <div class="parallax">
    <img src="example_image.jpg"/>
  </div>
</div>

shinymaterial documentation built on Sept. 1, 2020, 1:07 a.m.