ShapeYourPath
(current)
Run Code
Live Code Editor- Materialize Carousel Content
Source Code
<!DOCTYPE html> <html lang="en"> <head> <title>Materialize CSS Carousel With Content</title> <meta name="viewport" content="width = device-width, initial-scale = 1" /> <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> </head> <style type="text/css"> h1{ font-size: 30px; } </style> <body> <h1 class="center-align">Materialize CSS Carousel With Content</h1> <div class="carousel carousel-slider center"> <div class="carousel-fixed-item center"> <a class="btn waves-effect white grey-text darken-text-2">button</a> </div> <div class="carousel-item red white-text" href="#one!"> <h2>First Panel</h2> <p class="white-text">This is your first panel</p> </div> <div class="carousel-item amber white-text" href="#two!"> <h2>Second Panel</h2> <p class="white-text">This is your second panel</p> </div> <div class="carousel-item green white-text" href="#three!"> <h2>Third Panel</h2> <p class="white-text">This is your third panel</p> </div> <div class="carousel-item blue white-text" href="#four!"> <h2>Fourth Panel</h2> <p class="white-text">This is your fourth panel</p> </div> </div> <script type="text/javascript"> $(".carousel.carousel-slider").carousel({ fullWidth: true, indicators: true, }); </script> </body> </html>
Output :
Running