A Pen by Gilbertogil1965 on CodePen.
Last active
October 1, 2021 13:10
-
-
Save Gilbertogil1965/72ae676c96f38a0cdf744e0be73e6567 to your computer and use it in GitHub Desktop.
CarruselToti
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Carrusel Toti</title> | |
| <link href="https://http2.mlstatic.com/D_NQ_NP_875824-MLB31736463387_082019-O.webp" rel="stylesheet"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> | |
| <link rel="stylesheet" href="index.css"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col s12"> | |
| <h1 class="center-align titulo">VGKA/</h1> | |
| <div class="carousel center-align"> | |
| <div class="carousel-item"> | |
| <h2 class="subtitulo">Quem somos?</h2> | |
| <div class="linea-division"></div> | |
| <p class="sabor">Vanessa</p> | |
| <img src="https://http2.mlstatic.com/D_NQ_NP_875824-MLB31736463387_082019-O.webp" alt=""></div> | |
| <div class="carousel-item"> | |
| <p class="subtitulo">V G K A / Vanessa, Abelardo, Katterine e Gilberto</p> | |
| <div class="linea-division"></div> | |
| <p class="paragrafo"></p> | |
| <img src="blob:https://web.whatsapp.com/f8b06d82-3eb0-4749-babd-7b271047f545" alt=""></div> | |
| <div class="carousel-item"> | |
| <h2 class="subtitulo"></h2> | |
| <div class="linea-division"></div> | |
| <p class="paragrafo"></p> | |
| <img src="https://pm1.narvii.com/7134/241ccac3bf5d02233535bd119cd2dff8d8c4d735r1-529-447v2_hq.jpg" alt=""></div> | |
| <div class="carousel-item"> | |
| <h2 class="subtitulo"></h2> | |
| <div class="linea-division"></div> | |
| <p class="paragrafo"></p> | |
| <img src="https://i.picsum.photos/id/1/5616/3744.jpg?hmac=kKHwwU8s46oNettHKwJ24qOlIAsWN9d2TtsXDoCWWsQ" alt=""></div> | |
| <div class="carousel-item"> | |
| <h2 class="subtitulo"></h2> | |
| <div class="linea-division"></div> | |
| <p class="paragrafo"></p> | |
| <img src="https://e00-marca.uecdn.es/assets/multimedia/imagenes/2020/04/11/15866135621360.jpg" alt=""></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> | |
| <script src="java.js"></script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener('DOMContentLoaded', ()=>{ | |
| const elementosCarousel = document.querySelectorAll('.carousel'); | |
| M.Carousel.init(elementosCarousel, { | |
| duration: 150, | |
| dist: -80, | |
| shift: 5, | |
| padding: 5, | |
| numVisible: 3, | |
| indicators: true, | |
| noWrap: false | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *{ | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| .body { | |
| min-height: 100vh; | |
| background-image: #c3ddd9, rgb(228, 15, 15); | |
| font-family: Verdana, Geneva, Tahoma, sans-serif; | |
| } | |
| .titulo { | |
| font-size: 40px; | |
| font-family: Verdana, Geneva, Tahoma, sans-serif; | |
| margin-bottom: 40px; | |
| color: #fff; | |
| } | |
| .subtitulo { | |
| margin: 0; | |
| color: #000; | |
| display: inline; | |
| font-size: 50px; | |
| font-weight: 500; | |
| text-transform: uppercase; | |
| } | |
| .paragrafo { | |
| color: #fff; | |
| margin: 7px 0; | |
| font-size: 50px; | |
| font-weight: 600; | |
| text-shadow: 2px 2px 1px rgb(0,0,0,0.7); | |
| font-family: Verdana, Geneva, Tahoma, sans-serif; | |
| margin-top: 0; | |
| } | |
| .linea-division { | |
| width: 80%; | |
| height: 2px; | |
| background-color: #36221c; | |
| } | |
| .carousel .carousel-item { | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| user-select: none; | |
| width: 500px; | |
| height: 500px; | |
| } | |
| .carousel { | |
| min-height: 500px; | |
| } | |
| .carousel .carousel-item img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| z-index: 1; | |
| border-radius: 15px; | |
| } | |
| .carousel .indicators .indicator-item { | |
| border-radius: 0; | |
| transform: rotate(45deg); | |
| margin:0 15px; | |
| background: rgb(0,0,0,0.7); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment