ShapeYourPath
(current)
Run Code
Live Code Editor- Materialize CSS Parallax Cutomization
Source Code
<!DOCTYPE html> <html> <head> <title>Materialize CSS Parallax Cutomization</title> <meta name="viewport" content="width = device-width, initial-scale = 1" /> <meta name="description" content=""> <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" style="height:600px;"> <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"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <h4 class="light">Parallax Demo</h4> <p align="justify"> "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p> </div> </div> </section> <div class="parallax-container" style="height:600px;"> <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