css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
                      <nav>
             <div class="strelica"></div>
            <div class="slika"></div>
            <div class="ime"><h1>Tihomir car</h1></div>
           
        </nav>
        
        <main>
             
            <section>
                
                <h1>About</h1>
               
            </section>
             <div class="sadrzaj">
                 <h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur urna elit, dapibus sit amet dolor eu, efficitur imperdiet turpis. Sed euismod sem a tellus varius faucibus vitae ut libero.  </h1>
                 <h2>skills</h2>
                 <div class="skills">
                 <img height="20%" width="20%" src="images/HTML5_Logo.png">
                     <img height="20%" width="20%" src="images/css3-logo.png">
                     <img height="20%" width="20%"  src="images/js_logo.png">
                     <img height="20%" width="20%" src="images/jquery-logo.png">
                 </div>
                </div>
            <section>
                
                <h1>Work</h1>
            </section>
            
                <div class="work">
                    <div class="wo">
               <a href="projects/twitch/twitch.html"><img src="images/twitch.png"></a>
                   
                         <a href="projects/tic/index.html"><img src="images/tic.png"></a>
                     <a href="projects/simon_game/simon.html"><img src="images/simon.png"></a>
                        <a href="projects/quote/quote.html"><img src="images/quote_machine.png"></a>    <a href="projects/pomodor/pomodor.html"><img src="images/pomodor.png"></a>    <a href="projects/calculator/index.html"><img src="images/calc.png"></a>
                   
                </div>
           </div>
            <section>
                
                <h1>Contact</h1>
            </section>
            <div class="contact">
                <div class="con">
                <div class="lijevo">
                <div class="forma">
                <div>
                    <label>Your name is?</label><br>
                    <input type="text">
                    </div>
                    <div>
                      <label>Your E-mail is?</label><br>
                    <input type="email">
                   </div>
                </div>
                    <br>
                <label>Your question is?</label><br>
                <textarea cols="45" rows="7"></textarea><br><br>
                     <input type="submit" value="Submit">
                    </div>
                <div class="karta">
                <h3 style="margin:0">My location is:</h3>
                    <br>
                <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2776.035368861983!2d15.873212715637024!3d45.91060267910871!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4765c4d469936bd1%3A0xb047420e053aba11!2s%C5%A0imuni%C4%87eva+ul.+16%2C+10298%2C+Oborovo+Bistransko!5e0!3m2!1shr!2shr!4v1479674428428" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
                    </div>
            </div>
                
        </main>
        
        
        
        
            
          
!
            
              body{
    margin: 0;
}
nav{display: flex;
    width:100vw;
    height:10vh;
    background: gray;
    justify-content: space-around;
}

.slika{width: 20%;
    height:90%;
    margin-top:0.5%;
    background: url(images/ja.jpg);
    background-size: cover;
    border-radius: 50%;
}
.ime{
    width:60%;
    text-align: center;
    font-size: 25;
}
.ime h1{
    margin-top:15px
}
section h1{
    margin:0;
    text-align: center;
    font-size: 72px;
    line-height:200px;
}
section{
  
    width: 100vw;
    height:30vh;
}

section:nth-of-type(1){
    position: relative;
    background: #90CCE0
}
.sadrzaj{display: none;
    height: 60vh;
    background: #90CCE0
}

.sadrzaj h1{
    margin:0;
}
.sadrzaj h2{
    text-align: center;
    font-size: 45px;
}
section:nth-of-type(2){
     position: relative;
    background: pink;
 
}
section:nth-of-type(3){
     position: relative;
    background: #A7AEB0;
}
.skills{justify-content: space-between;
    display: flex;
}
.skills img{
    
    border-radius: 20%;
}
.work{width: 100vw;
 height: 60vh;
    background: pink;
    position: relative;
display: none
}
.wo{width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around
}
.work a{
  
    width: 45%;
    height: 30%;
    
}
.work img{
    width: 100%;
    height: 100%;
}

.contact{
    position: relative;
     height: 60vh;
    display: none;
   background: #A7AEB0;
}
.forma{
    display: flex;
    justify-content: space-between
}
.lijevo{
    width: 50%;
text-align: center;}

.karta {width: 40%;
    height: 50%;
}
.karta iframe{
    height: 100%;
    width:100%;
}

.con{display: flex;
    justify-content: space-between;
    
}
.pomak{
       animation-name: blink;
    animation-duration: 1s;
    animation-fill-mode: forwards; 
}
.pomak1{
       animation-name: blink1;
    animation-duration: 1s;
    animation-fill-mode: forwards; 
}

.left{
           animation-name: lijevo;
    animation-duration: 1s;
    animation-fill-mode: forwards; 
}


@keyframes lijevo{
    0%{transform:translate(0px); 
        
    }
    100%{
       transform:translate(-110vh); 
        
    }
}
@keyframes blink{
    0%{transform:translate(0px); 
        
    }
    100%{
       transform:translate(0,-30vh); 
        
    }
}
@keyframes blink1{
    0%{transform:translate(0px); 
        
    }
    100%{
       transform:translate(0,-60vh); 
        
    }
}
@keyframes bl{
    0%{opacity: 0;
        
    }
    50%{opacity: 1;
        
    }
    100%{opacity: 0;
        
    }
}
.strelica{animation-name: bl;
animation-duration:800ms;
    animation-iteration-count:infinite;
    opacity: 0;
    width: 40px;
    height: 40px;
     background: url(http://img.freepik.com/free-icon/right-arrow_318-131657.jpg?size=338c&ext=jpg);
    background-size: cover;
    display: none;
    
}




            
          
!
            
              $( document ).ready(function() {
    var koji;
    
    $("section:nth-of-type(1)").on("click",function(){
        koji="prvi";
        console.log("sad")
          $("section:nth-of-type(2)").animate({
              right:"110vw"
          },500)
           $("section:nth-of-type(3)").animate({
              right:"110vw"
          },500)
         setTimeout(function(){
             
             $(".sadrzaj").slideDown( "slow", "linear" )
         $(".strelica").show();
         },800)
      
       
   })
      $("section:nth-of-type(2)").on("click",function(){
           koji="drugi";
        $("section:nth-of-type(1)").animate({
              right:"110vw"
          },500)
           $("section:nth-of-type(3)").animate({
              right:"110vw"
          },500)
         setTimeout(function(){
               $("section:nth-of-type(2)").animate({
              bottom:"30vh"
          },500)
               $(".work").animate({
                   bottom:"30vh"
               },500)
             $(".work").slideDown( "slow", "linear" )
         $(".strelica").show();
         },800)
      
   })
          $("section:nth-of-type(3)").on("click",function(){
               koji="treci";
              $("section:nth-of-type(1)").animate({
              right:"110vw"
          },500)
           $("section:nth-of-type(2)").animate({
              right:"110vw"
          },500)
           $(this).animate({
               bottom:"60vh"
           },500)
           $(".contact").animate({
               bottom:"60vh"
           },500)
            
             $(".contact").slideDown( "slow", "linear" )
         $(".strelica").show();
         
       
   })


$(".strelica").on("click",function(){if(koji=="prvi"){
     $(".sadrzaj").slideUp("slow","linear");
    setTimeout(function(){
          $("section:nth-of-type(2), section:nth-of-type(3)").animate({
        left:"0vw"
    },500)
          
          
    },500)
  $(this).hide();
}
                                     
    else if(koji=="drugi"){
     $(".work").slideUp("slow","linear");
        setTimeout(function(){
              $("section:nth-of-type(2)").animate({
            top:"0vh"
        },500)
        },500)
      
    setTimeout(function(){
        
          $("section:nth-of-type(1), section:nth-of-type(3)").animate({
        left:"0vw"
    },500)
                $("section:nth-of-type(3), section:nth-of-type(3)").animate({
        left:"0vw"
    },500)
          
          
    },500)
  $(this).hide();
}
     else if(koji=="treci"){
     $(".contact").slideUp("slow","linear");
        setTimeout(function(){
              $("section:nth-of-type(3)").animate({
            top:"0vh"
        },1000)
        },500)
      
    setTimeout(function(){
        
       
                $("section:nth-of-type(1), section:nth-of-type(2)").animate({
        left:"0vw"
    },700)
          
          
    },500)
  $(this).hide();
}
                                     
})

});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console