Programming Exercises

Create a parallax scrolling effect for a background image.

Medium

Problem Statement

Create a parallax scrolling effect for a background image.

Sample Output

The background image scrolls slower than the content.

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
<!DOCTYPE html> <html> <head> <style> /* Add CSS here to create the parallax effect */ </style> </head> <body> <section class="parallax"></section> <div class="content">Content goes here...</div> </body> </html>
Log in or sign up to run or submit your code.Log inSign up
Expected Output
The background image scrolls slower than the content.