ShapeYourPath
(current)
Run Code
Live Code Editor-Materialize CSS Parallax
Source Code
<!DOCTYPE html> <html> <head> <title>Materialize CSS Parallax</title> <meta name="viewport" content="width = device-width, initial-scale = 1" /> <meta name="robots" content="noindex,nofollow"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> <!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" /> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <!-- Compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> <style type="text/css"> p { font-size: 18px; } h2 { font-size: 30px; } </style> </head> <body> <h1 class="center-align">Materialize CSS Parallax</h1> <!-- Start Parallax --> <div class="parallax-container"> <div class="parallax"> <img src="https://picsum.photos/300/400" class="responsive-img" alt="Parallax"> </div> </div> <section class="section white"> <div class="row"> <div class="col s12"> <h2 class="header">Parallax</h2> <p class="grey-text text-darken-3 lighten-3">Parallax is an effect in which background content is moved with different speed than the foreground content while scrolling </p> </div> </div> <div class="row"> <div class="col s12"> <h4 class="light">Parallax Demo</h4> <p align="justify">In this example, you will learn how to create Materialize CSS parallax effect. </p> <h4 class="light">Parallax Demo</h4> <p align="justify">You can see parallax effect after scrolling the web page content. </p> </div> </div> </section> <div class="parallax-container"> <div class="parallax"> <img src="https://picsum.photos/400/500" class="responsive-img" alt="Parallax"> </div> </div> <!-- End Parallax --> <!-- Start Parallax Javascript --> <script type="text/javascript"> $(document).ready(function() { $('.parallax').parallax(); }); </script> <!-- EndParallax Javascript --> </body> </html>
Output :
Running
MATERIALIZE-TUTORIAL
MATERIALIZE-CSS-PARALLAX OTHER EXAMPLES
Materialize CSS Parallax Example
Materialize CSS Parallax Cutomization Example