<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
    <style>
        h1 {
            margin: 0;
        }

        .azul {
            background: blue;
            position: relative;
            z-index: 3;
        }
        .amarillo {
            background: yellow;
            position: relative;
            z-index: 2;
        }
        .rojo {
            background: red;
            z-index: 3;
            position: absolute;
            clip: rect(0, auto, auto, 0);
        }
        .anaranjado {
            background: orange;
            z-index: 4;
            position: absolute;
            clip: rect(0, auto, auto, 0);
        }

        .completo {
            height: 100vh;
        }

        .objeto {
            position: relative;
        }

        .bici {
            height: 300px;
            width: 50%;
            position: fixed;
            left: 25%;
            bottom: 100px;
        }

        .bici1 {
            z-index: 1;
            background: white;
        }
        .bici2 {
            z-index: 2;
            background: green;
        }
        .bici3 {
            z-index: 3;
            background: violet;
        }


        .menu {
            position: fixed;
            right: 100px;
            top: 200px;
            width: 100px;
            z-index: 100;
        }

        [data-scroll] {
            transition: all 1s;
            transition-delay: 0.5s;
        }
        [data-scroll="in"] {
            opacity: 1;
            transform: translateX(50px);
        }
        [data-scroll="out"] {
            opacity: 0;
            transform: translateX(-50px);
        }
    </style>


    <div class="menu">
        <ul>
            <li>
                <button class="btn-menu" data-section="#portada">portada</a>
            </li>
            <li>
                <button class="btn-menu" data-section="#proveedores">proveedores</a>
            </li>
            <li>
                <button class="btn-menu" data-section="#equipos">equipos</a>
            </li>
            <li>
                <button class="btn-menu" data-section="#profesionales">profesionales</a>
            </li>
        </ul>
    </div>

    <div id="portada" class="azul completo">
        <div class="container text-center">
            <h1 data-scroll>COSTEAR</h1>
        </div>
    </div>

    <div id="proveedores" class="amarillo completo text-center">
        <h1 class="rellax objeto" data-aos="fade-up">proveedores</h1>
        <div class="bici bici1"></div>
    </div>

    <div id="equipos" class="completo" style="position: relative;">
        <div class="rojo completo w-100">
            <div class="bici bici2"></div>
        </div>
    </div>

    <div id="profesionales" class="completo" style="position: relative;">
        <div class="anaranjado completo w-100">
            <div class="bici bici3"></div>
        </div>
    </div>



    

    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/dixonandmoe/rellax@master/rellax.min.js"></script>
    <script src="https://unpkg.com/scroll-out/dist/scroll-out.min.js"></script>

    <script>
        new Rellax('.rellax', {
            center: true,
        });

        $(".btn-menu").click(function() 
        {
            let section = $(this).attr('data-section');
            console.log(section);

            $('html, body').animate({
                scrollTop: $(section).offset().top
            }, 1000);
        });

        ScrollOut();
    </script>
</body>
</html><?php /**PATH C:\xampp\htdocs\costear\resources\views/web/prueba.blade.php ENDPATH**/ ?>