cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

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.

            
                  <section>

      <div class="dropDown-ctn">
        <div class="dropDown-title">
            Sobre
            <div class="icons">
              <div class="close">
                <svg class="closeIcon">
                    <line x1="1" y1="25"
                          x2="25" y2="1"/>
                    <line x1="1" y1="1"
                          x2="25" y2="25"/>
                </svg>

              </div>
              <div class="arrow">
                <svg class="arrowIcon">
                  <path d="M0 0 L15 15 L30 0"></path>
                </svg>

              </div>

            </div>
        </div>
        <div class="dropDown-items">
          <ul>
            <li>
              <a href="#">Serviços</a>
            </li>
            <li>
              <a href="#">Nossa Equipe</a>
            </li>
            <li>
              <a href="#">Nosso Trabalho</a>
            </li>
          </ul>
        </div>


      </div>

      <h3>Conceito - Link <a href="https://www.facebook.com/studiomowe/videos/1960932897515333/">StudioMowe</a></h3>
    </section>
            
          
!
            
              
      body,html{
        width: 100%;
        height: 100%;
        display: block;
        position: relative;
        font-family: 'Lato', sans-serif;
        background-color: #DBE3ED

      }

      section{
        height: 100%;
        position: relative;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
      }

      .dropDown-ctn{
        text-transform: uppercase;
        font-size: 1.1em;
        position: relative;
        -webkit-box-shadow: 0px 0px 23px -2px rgba(0,0,0,0.24);
      box-shadow: 0px 0px 23px -2px rgba(0,0,0,0.24);

      }
      .dropDown-title{
        min-height: 60px;
        min-width: 180px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        padding-left: 25px;
        border-bottom: 2px solid #E1E3E9;
        cursor: pointer;
position: relative;
    background-color: #fff;
      }
      .dropDown-items{

    -webkit-transform: scaleY(0);

            transform: scaleY(0);

      }
      .dropDown-items ul{
        list-style: none;
        padding: 0px;
        margin: 0px;
        background-color: #fff;

      }
      .dropDown-items ul li{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        font-size: 0.95em;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        text-align: center;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        min-height: 60px;
        min-width: 180px;
        position: relative;
        -webkit-transition: background-color 0.5s ;
        transition: background-color 0.5s ;
        cursor: pointer;
        opacity: 0

      }
      .dropDown-items ul li a{
          text-align: center;
          text-decoration: none;
          color: #444;
          display: block;
      }
          .dropDown-items ul li:hover{
            background-color:#efefef

          }
        .dropDown-items ul li:after{
          content: "";
          position: absolute;
          width: 80%;
          bottom: 0%;
          left: 50%;
          -webkit-transform: translateX(-50%);
                  transform: translateX(-50%);
          height: 2px;
          background-color: #dedede
        }
          .dropDown-items ul li:nth-last-child(1):after{
              display: none
          }


          .icons{
            position: absolute;
            right: 0%;
            top: 0%;
            display: block;
            width: 40%;
            height: 100%;
          }

          .arrowIcon{
            width: 30px;
            height: 17px
          }
          .closeIcon{
            height: 25px;
            width: 25px;
          }
          .arrowIcon path,.closeIcon line{
          	stroke: #E1E3E9;
          	fill: #fff;
          	stroke-width: 3px;
          }
          .arrow,.close{
            height: 45px;
            width: 45px;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            -webkit-box-pack: center;
                -ms-flex-pack: center;
                    justify-content: center;
            margin: 0px;
            position: absolute;
            top: 50%;
            -webkit-transform: translate(-50%,-50%);
                    transform: translate(-50%,-50%);
            left: 50%;
            z-index: 10
          }
          .close{
            top: -40%
          }
          h3{
            position: absolute;
    bottom: 0%;
    left: 0%;
    width: 100%;
    text-align: center;
    font-size: 1em;
    color: black;
    font-weight: 100;
    text-decoration: none;
          }
            
          
!
            
                let dropDownEl = document.getElementsByClassName('dropDown-ctn')[0];
  var animeTimeline = anime.timeline({
    autoplay: false,
    direction: 'alternate',
    loop:false

  });

  animeTimeline.add({
    targets: dropDownEl.querySelector('.arrow').querySelector('.arrowIcon'),
    scale: [1,0.8],
    easing: 'linear',
    duration: 200,
    transformOrigin: ['50%', '50%'],
  }).add({
    targets: dropDownEl.querySelector('.arrow').querySelector('.arrowIcon'),
    scale: [0.8,1],
    transformOrigin: ['50%', '50%'],
    easing: 'linear',
    duration: 200

  }).add({
    targets: dropDownEl.querySelector('.arrow'),
    top: ['50%','114%'],
    easing: 'easeInCubic',
    duration: 500,
    offset: 400

  }).add({
    targets: dropDownEl.querySelector('.close'),
    top: ['-40%','50%'],
    offset: 820,
    elasticity: 40,

  }).add({
    targets: dropDownEl.querySelector('.close').querySelectorAll('.closeIcon line')[0],
    rotate: ['-50deg','0deg'],
    transformOrigin: ['50%', '50%'],
    elasticity: 40,
    offset: 850

  }).add({
    targets: dropDownEl.querySelector('.close').querySelectorAll('.closeIcon line')[1],
    rotate: ['50deg','0deg'],
    transformOrigin: ['50%', '50%'],
    elasticity: 40,
    offset: 850

  }).add({
    targets: dropDownEl.querySelector('.arrow').querySelector('.arrowIcon path'),
    strokeWidth: 2,
    duration: 200,
    offset: 800
  })
  .add({
    targets: dropDownEl.querySelector('.dropDown-items'),
    transformOrigin: ['0% 0%', '0% 0%'],
    scaleY: [0,1],
    duration:1300,
    offset: 900,
    elasticity: 40,

  }).add({
    targets: dropDownEl,
    transformOrigin: ['0% 0%', '0% 0%'],
    height: ['60px','242px'],
    duration:1300,
    offset: 900,
    elasticity: 5,

  }).add({
    targets: dropDownEl.querySelectorAll('.dropDown-items ul li'),
    opacity: [0,1],
    duration:600,
    translateY: ['-10%','0%'],
    easing:'linear',
    delay: function(el, i, l) { return i * 250; },
    offset: 950
  })

  dropDownEl.onclick = ()=>{
    if(animeTimeline.progress == 100){
      if (!animeTimeline.reversed) animeTimeline.reverse();
      animeTimeline.play()

    }else{
      if (animeTimeline.reversed) animeTimeline.reverse()

      animeTimeline.play()

    }

  };
            
          
!
999px
Loading ..................

Console