Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
  <section style="height:90vh;background:gray"><h1>Scroll me</h1></section>
<section class="LinhadeApoio">
        <div class="DivImagemApoio">
          <img src="https://teste.easygueston.com/Stockcar/Media/woman_callcenter.png" alt="womancallcenter">
          <div class="Apoiolinha-azul"></div>
        </div>

        <div class="divForm">
        <p class="apoioTexto">Esclarecemos todas as suas dúvidas/questões
          Deixe aqui o seu contacto ligamos consigo em <span>MENOS DE 24H</span></p>
        <div class="login-box">
          <h2 style="text-align:center">content</h2>
        </div>
        <h2 class="ApoioContactenos">CONTACTE-NOS DIRETAMENTE<br>
          <span>253 300 500</span></h2>
      </div>

        <div class="testedrive">
          <img src="./Media/carro_div_test_drive.jpg" alt="testdrive">
          <div style="padding: 2em;">
            <h3 style="color: #3193FF;letter-spacing: 3px;font-weight: 700;">TEST-DRIVE</h3>
          <h4 style="font-weight: 700;">COMO CONSEGUIR MARCAR<br><span style="    font-weight: 800;">UM TESTE DRIVE?</span></h4>
            
            <button class="btn">Saber mais</button>
          </div>
          
        </div>
        <h4 class="titleapoio">Linha de Apoio</h4>
      </section>
  <section class="Newsletter">
        <div class="leftcontainnews">
        <div class="img-newsletter">
          <img src="https://teste.easygueston.com/Stockcar/Media/woman_callcenter.png" alt="phone" loading="lazy">
        </div>
        <div class="header-newsletter">
          <h1>NEWSLETTER</h1>
          <p>SUBSCREVA A NOSSA NEWSLETTER E RECEBA AS NOSSAS NOVIDADES, PROMOÇÕES E NOTÍCIAS</p>
        </div>
      </div>
      <div class="formNewsletter">
        <form action="">
          <div class="envibut">
            <input type="email" placeholder="INSERIR EMAIL">
            <button class="buttonGeral"><b>SUBSCREVER</b></button>
          </div>
         
          <div class="aceito">
            <input type="checkbox" name="" id="">PERMITO RECEBER EMAILS
          </div>
        </form>
      </div>
      </section>
   <section style="height:90vh"><h1>Scroll me</h1></section>

              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Signika+Negative:300,400&display=swap');
.LinhadeApoio{
  /* height: 50vh; */
    display: flex;
    width: 100%;
    margin-top: 11em;
    margin-bottom: 6em;
    position: relative;
}
.LinhadeApoio .titleapoio{
  position: absolute;
  left: 565px;
  letter-spacing: 12px;
  top: -40px;
  text-transform: uppercase;
  font-weight: 700;
}

.LinhadeApoio .titleapoio::before{
  content: '';
  display: block;
  position: absolute;
  width: 11%;
  top: -25%;
  border-top: 5px solid var(--FundosBotoesVarios);
}
.DivImagemApoio{
  width: 35%;
  z-index: 1;
  position: relative;
}
.DivImagemApoio img{
  width: 82%;
  height:auto;
}

.DivImagemApoio .Apoiolinha-azul{
  height: 3vh;
  background: #3193FF;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 6666;
  width: 100%;
}
divForm{
      width: 30%;
      background-color: #3193FF;
      padding:2em;
      margin-left: -1%;
      padding-right: 3em;
      padding-left: 3em;
    }

    .apoioTexto{
      color:white;
      text-align: left;
      font-size: 1rem;
      letter-spacing: 2px;
      text-transform: none;
    }

    .apoioTexto span{
      font-weight:900;
      font-size:20px;
    }

    .ApoioContactenos{
      font-size: 1rem;
      color: white;
      letter-spacing: 5px;
      padding-top: 2em;
      max-width: 100%;
    }

    .ApoioContactenos span{
      font-size: 2rem;
      letter-spacing: 15px;
      font-weight: 700;
    }


    .testedrive{
      position: relative;
      width: 36%;
      background-color: #ebebeb;
    }
    .testedrive img {
      width: 100%;
      height:auto;
    }
    .testedrive button{
      bottom: 0;
      position: absolute;
      right: 0;
    }
    .testedrive .btn{
      background-color: #3193FF;
      color: white;
      border-radius: 0;
      padding-left: 2em;
      padding-right: 2em;
      text-transform: uppercase;
    }
.Newsletter{
  margin-inline: 7vw;
  display: flex;
  margin-bottom: 4em;
  position:relative;

}
.leftcontainnews{
  display: flex;
  width: 50%;
}
/* .img-newsletter img{
  width: 100%;
} */
.img-newsletter{
    position:relative;
}
.Newsletter::before {
    content: url('../Media/shapes/z cinza esq.svg');
    position: absolute;
    left: -11vw;
    right: 0;
    top: 0;
    bottom: 0;
    width: 22%;
}
.Newsletter::after {
    content: url('../Media/shapes/z cinza esq.svg');
    position: absolute;
    right: -2vw;
    top: 0;
    bottom: 0;
    width: 22%;
    z-index: -1;
}

.header-newsletter{
  position: relative;
  align-self: center;
}

.header-newsletter > h1{
  font-size: 3rem;
  letter-spacing: 7px;
  font-weight: 700;
  color: var(--novoTitulo);
  position: relative;
}
.header-newsletter > h1::before{
  content: '';
  position: absolute;
  width: 50px;
  bottom: 0;
  border-bottom: 5px solid var(--FundosBotoesVarios);
}


.header-newsletter > p{
  max-width: 70%;
  letter-spacing: 2px;
  font-weight: 600;
}

.envibut{
  display: flex;
}
.formNewsletter{
  align-self: center;
  width: 50%;
}
.envibut input{
  border: none;
    width: 60%;
  border-left: 2px solid var(--FundosBotoesVarios);
  border-bottom: 1px solid lightgray;
  margin-right: 1em;
}
.Newsletter .buttonGeral{
  letter-spacing: 4px;
}

.aceito input{
  width: unset;
  margin-top: 1em;
  margin-right: 0.5em;
  color: var(--novoTitulo);

}

.aceito input[type="checkbox" i] {
padding-right: 1em;
}
              
            
!

JS

              
                
gsap.timeline({
  scrollTrigger: {
    trigger: '.LinhadeApoio', // This is the Section Class
    start:"center center",
    end: "bottom top",
    markers: true
  } 
 
})
.from(".DivImagemApoio", {x:-200, opacity:0, duration:2})  // div class i want to animate
 
let var1 = gsap.timeline({
  scrollTrigger: {
    trigger: '.Newsletter', // This is the Section Class
    start:"center bottom",
    end: "bottom top",
    markers:true
 
  } 
 
})
var1.from(".leftcontainnews", {x:-200, opacity:0, duration:3}) // div class i want to animate
 

// gsap.delayedCall(3, function() {
//   ScrollTrigger.refresh();
// });
              
            
!
999px

Console