Lava Example - 61 | Rock Community

Lava Example - 57


Prompt

Your template has an image URL in {{ imageUrl }}. We're using it as the background of an element right now, but our team wants to use the cool Parallax effect.

Update the HTML template to use the shortcode!

Initial Code
<div style="background-image:url('{{ imageUrl }}');">
    <h1>Hello Lava!</h1>
</div>
Solution Lava
{[ parallax image:imageUrl ]}
    <h1>Hello Lava!</h1>
{[ endparallax ]}