Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Animazione Pagina

  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2012
    Messaggi
    56

    Animazione Pagina

    Non riesco a far coesistere queste due codici
    Sto cercando di far aprire una pagina cliccando su un pulsante con una animazione.

    La pagina principale ha questa impostazione :
    codice HTML:
    <!-- start servizi -->
    <div id="servizi" class="text-center">
    <div class="container">
    <div class="row">
    <div class="col-md-12 wow bounce">
    <h2>Di cosa ci occupiamo</h2>
    </div>
    <div class="col-sm-6 col-md-3 wow fadeInLeft" data-wow-delay="0.6s">
    <div class="plan plan_one">
    <h4 class="plan_title">Prova</h4>
    <ul>
    <div align="left">pppppp ppppppppppp pp,....</div>
    </ul>
    <button class="btn btn-warning">Continua</button>
    </div>
    Questo è il file contenente "style"
    codice: codice:
    /* start servizi */
    #servizi
    {
    border-bottom: 1px solid #f6f6f6;
    }
    #servizi .col-md-3,
    #servizi .col-sm-6
    {
    padding: 0;
    margin: 0;
    }
    #servizi .plan
    {
    border: 1px solid #f6f6f6;
    margin-top: 100px;
    transition: all 0.4s ease-in;
    padding: 40px;
    }
    #servizi .plan_one
    {
    margin-top: 60px;
    }
    #servizi .plan_two
    {
    margin-top: 80px;
    }
    #servizi .plan_three
    {
    margin-top: 40px;
    }
    #servizi .plan_four
    {
    margin-top: 0px;
    }
    #servizi .plan:hover
    {
    background: #202020;
    color: #ffffff;
    transform: scale(1.0);
    }
    #servizi .plan .plan_title
    {
    border-bottom: 1px solid #f6f6f6;
    color: #9bc848;
    font-size: 30px;
    padding: 20px;
    }
    #servizi .plan ul
    {
    padding: 0;
    }
    #servizi .plan ul li
    {
    display: block;
    padding: 20px 0 20px 0;
    }
    #servizi .plan .btn
    {
    background: #93ca3a;
    border: none;
    border-radius: 2px;
    font-weight: bold;
    font-size: 12px;
    width: 120px;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: all 0.4s ease-in-out;
    }
    #servizi .plan .btn:hover
    {
    background: #FFFFFF;
    color: #66AF33;
    }
    /* end servizi */
    Volevo aggiungere questo:[HTML codice HTML:
    ]<style>
    body {font-family: Arial, Helvetica, sans-serif;}
    /* Set a style for all buttons */
    button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    }
    button:hover {
    opacity: 0.8;
    }
    /* Center the image and position the close button */
    .imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
    }
    .container {
    padding: 16px;
    }

    /* The Modal (background) */
    .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
    }
    /* Modal Content/Box */
    .modal-content {
    background-color: #fefefe;
    margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    }
    /* The Close Button (x) */
    .close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
    }
    .close:hover,
    .close:focus {
    color: red;
    cursor: pointer;
    }
    /* Add Zoom Animation */
    .animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
    }
    @-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
    }

    @keyframes animatezoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
    }
    < /style>
    < /head>
    < body>
    < button onclick="document.getElementById('servizi').style. display='block'" style="width:auto;">Continua</button>
    < div id="servizi" class="modal">

    <form class="modal-content animate" action="/testo.html">
    <div class="imgcontainer">
    <span onclick="document.getElementById('servizi').style. display='none'" class="close" title="Chiudi Finestra">&times;</span>
    </div>
    <div class="container">
    <h2>Provavvvvv abkhblkwjhò òohj òo hdòohòodsh</h2>
    </div>
    </form>
    /HTML]

    Mi potete dire come posso coesistere questa pagina, Grazie

  2. #2
    Utente di HTML.it
    Registrato dal
    Jul 2012
    Messaggi
    56
    Non riesco a far coesistere queste due codici
    Sto cercando di far aprire una pagina cliccando su un pulsante con una animazione.

    La pagina principale ha questa impostazione :
    codice HTML:
    codice HTML:
    <!-- start servizi -->
    <div id="servizi" class="text-center">
    <div class="container">
    <div class="row">
    <div class="col-md-12 wow bounce">
    <h2>Di cosa ci occupiamo</h2>
    </div>
    <div class="col-sm-6 col-md-3 wow fadeInLeft" data-wow-delay="0.6s">
    <div class="plan plan_one">
    <h4 class="plan_title">Prova</h4>
    <ul>
    <div align="left">pppppp ppppppppppp pp,....</div>
    </ul>
    <button class="btn btn-warning">Continua</button>
    </div>
    Questo è il file contenente "style"
    codice: codice:
    codice:
     /* start servizi */
     #servizi
        {
            border-bottom: 1px solid #f6f6f6;
        }
     #servizi .col-md-3,
     #servizi .col-sm-6
        {
            padding: 0;
            margin: 0;
        }
     #servizi .plan
      {
        border: 1px solid #f6f6f6;
        margin-top: 100px;
        transition: all 0.4s ease-in;
        padding: 40px;
      }
     #servizi .plan_one
     {
        margin-top: 60px;
     }
     #servizi .plan_two
     {
        margin-top: 80px;
     }
     #servizi .plan_three
     {
        margin-top: 40px;
     }
     #servizi .plan_four
     {
        margin-top: 0px;
     }
     #servizi .plan:hover
      {
        background: #202020;
        color: #ffffff;
        transform: scale(1.0);
      }
     #servizi .plan .plan_title
      {
        border-bottom: 1px solid #f6f6f6;
        color: #9bc848;
        font-size: 30px;
        padding: 20px;
      }
     #servizi .plan ul
      {
        padding: 0;
      }
     #servizi .plan ul li
      {
        display: block;
        padding: 20px 0 20px 0;
      }
     #servizi .plan .btn
      {
        background: #93ca3a;
        border: none;
        border-radius: 2px;
        font-weight: bold;
        font-size: 12px;
        width: 120px;
        margin-top: 20px;
        margin-bottom: 20px;
        transition: all 0.4s ease-in-out;
      }
     #servizi .plan .btn:hover
      {
        background: #FFFFFF;
        color: #66AF33;
        }
     /* end servizi */
    Volevo aggiungere questo
    codice HTML:
    :[HTML codice HTML:
     ]<style>
     body {font-family: Arial, Helvetica, sans-serif;}
     /* Set a style for all buttons */
     button {
        background-color: #4CAF50;
        color: white;
        padding: 14px 20px;
        margin: 8px 0;
        border: none;
        cursor: pointer;
        width: 100%;
     }
     button:hover {
        opacity: 0.8;
     }
     /* Center the image and position the close button */
     .imgcontainer {
        text-align: center;
        margin: 24px 0 12px 0;
        position: relative;
     }
     .container {
        padding: 16px;
     }
    
     /* The Modal (background) */
     .modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1; /* Sit on top */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgb(0,0,0); /* Fallback color */
        background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
        padding-top: 60px;
     }
     /* Modal Content/Box */
     .modal-content {
        background-color: #fefefe;
        margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
        border: 1px solid #888;
        width: 80%; /* Could be more or less, depending on screen size */
     }
     /* The Close Button (x) */
     .close {
        position: absolute;
        right: 25px;
        top: 0;
        color: #000;
        font-size: 35px;
        font-weight: bold;
     }
     .close:hover,
     .close:focus {
        color: red;
        cursor: pointer;
     }
     /* Add Zoom Animation */
     .animate {
    -webkit-animation: animatezoom 0.6s;
        animation: animatezoom 0.6s
     }
     @-webkit-keyframes animatezoom {
        from {-webkit-transform: scale(0)} 
        to {-webkit-transform: scale(1)}
     }
    
     @keyframes animatezoom {
        from {transform: scale(0)} 
        to {transform: scale(1)}
     }
    < /style>
    < /head>
    < body>
    < button onclick="document.getElementById('servizi').style.  display='block'" style="width:auto;">Continua</button>
    < div id="servizi" class="modal">
    
    <form class="modal-content animate" action="/testo.html">
    <div class="imgcontainer">
    <span onclick="document.getElementById('servizi').style.  display='none'" class="close" title="Chiudi Finestra">&times;</span>
    </div>
    <div class="container">
    <h2>Provavvvvv abkhblkwjhò òohj òo hdòohòodsh</h2>
    </div>
    </form>
     /HTML]
    Mi potete dire come posso coesistere questa pagina, Grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.