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.

            
              <body>

<header id="intro">
    <div id="content">
            <h2 id="nombre">Eva Santos</h2>
            <div id="logo">
                <img class="alaizq" src="http://evasantos.com/ilustraciones/cv/ala-izq.svg" alt="ala" />
                <img class="yo" src="http://evasantos.com/ilustraciones/cv/yo-circulo.svg" alt="logo" />
                <img class="alader" src="http://evasantos.com/ilustraciones/cv/ala-der.svg" alt="ala" />
        <!--CONTENEDOR DE DATOS -->                
                <div id="contenedorDatosGeneral">
                    <div id="contenedorDatos"></div>
                </div> 
            </div>
            <h2 id="curriculum">Resume</h2>
            <div id="social"> 
                <a href="https://www.linkedin.com/in/evasantosblanco/" target="_blank"><i class="fa fa-linkedin-square fa-2x" aria-hidden="true"></i></a>
                <a href="https://twitter.com/Psicobicho" target="_blank"><i class="fa fa-twitter-square fa-2x" aria-hidden="true"></i></a>
                <a href="https://www.behance.net/evasantos" target="_blank"><i class="fa fa-behance-square fa-2x" aria-hidden="true"></i></a>
            </div>
            <div id="flechaScroll">  
                <i class="fa fa-arrow-down fa-2x" aria-hidden="true"></i>
            </div>
        
            <p id="ilus">Illustration</p>
            <p id="anim">Animation</p>
            <p id="prog">Development</p>
    </div>
</header>

<main class="main">
    <div class="espacio-izq"></div>
    <div class="contenedor-central">
        <!-- FONDO ANIMACION -->
        <div class="fondo">
            <img src="http://evasantos.com/ilustraciones/cv/arbolCV.svg" alt="arbol">
        </div>
       
        <!--MARIKITA -->
        <div class="marikita-cont">
            <div id="marikita">
                <img src="http://evasantos.com/ilustraciones/cv/marikita.svg" alt="marikita">
            </div>
        </div>
        <div class="ojos-cont">
            <div class="ojos">
                <div class="ojo1"><div></div></div>
                <div class="ojo2"></div>
            </div>
        </div>
        <div class="bocadillos">
            <img class="boc-ilus" src="http://evasantos.com/ilustraciones/cv/ilustracion.svg" alt="ilustracion">
            <img class="boc-anim" src="http://evasantos.com/ilustraciones/cv/animacion.svg" alt="animacion">
            <img class="boc-prog" src="http://evasantos.com/ilustraciones/cv/programacion.svg" alt="programacion">
        </div>
        <div class="enlaces-ilustracion">
            <a class="i-uno" target="_blank" href="https://www.behance.net/gallery/5711711/Zorro-Veloz"><img src="http://evasantos.com/ilustraciones/cv/Ilus1.PNG"></a>
            <a class="i-dos" target="_blank" href="https://www.behance.net/gallery/14428487/Cats"><img src="http://evasantos.com/ilustraciones/cv/Ilus2.PNG"></a>
            <a class="i-tres" target="_blank" href="https://www.behance.net/gallery/13990377/Wind"><img src="http://evasantos.com/ilustraciones/cv/Ilus3.PNG"></a>
        </div>
           <div class="enlaces-animacion">
            <a class="a-uno" target="_blank" href="https://codepen.io/SoyEva/pen/LRjWzZ"><img src="http://evasantos.com/ilustraciones/cv/Code1.PNG"></a>
            <a class="a-dos" target="_blank" href="https://codepen.io/SoyEva/pen/RPggrx"><img src="http://evasantos.com/ilustraciones/cv/Code2.PNG"></a>
            <a class="a-tres" target="_blank" href="https://codepen.io/SoyEva/pen/XXRNBG"><img src="http://evasantos.com/ilustraciones/cv/Code3.PNG"></a>
        </div>
    </div>
   
    <div class="secciones">
        <div class="seccion seccion1"></div>
        <div class="seccion"></div>
        <div class="seccion seccion2"></div>
        <div class="seccion"></div>
        <div class="seccion seccion3"></div>
        <div class="seccion"></div>
        <div class="seccion seccion4"></div>
    </div>
</main>
</body>
            
          
!
            
              
@import url('https://fonts.googleapis.com/css?family=Shadows+Into+Light+Two');
@import url('https://fonts.googleapis.com/css?family=Roboto|Shadows+Into+Light+Two');

$textoIntro: #30313D;
$ojos: white;
$fondo: #73C8A9;
$seccion: #C0D23E;
$contenedor-datos: #C0D23E;
$enlaces: #74C7A9;
$enlaces-borde: #255456;

@mixin altoAncho ($alto, $ancho){
  height: $alto;
  width: $ancho;
}
@mixin centradoXY{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@mixin fuenteTitle{
  font-family: 'Roboto', sans-serif;
}
@mixin fuenteNombre{
  font-family: 'Shadows Into Light Two', cursive;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  -webkit-box-sizing: border-box; /* Android ≤ 2.3, iOS ≤ 4 */
  -moz-box-sizing: border-box; /* Firefox ≤ 28 */
  box-sizing: border-box; /* Chrome, Firefox 29+, IE 8+, Opera, Safari 5.1 */

}
body {
  line-height: 1;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='20px' height='785px' viewBox='0 0 20 785' enable-background='new 0 0 20 785' xml:space='preserve'%3E %3Crect x='7' fill='%23EDEDED' stroke='%23FFFFFF' stroke-miterlimit='10' width='8' height='792'/%3E %3C/svg%3E");
}
p{
  text-align: center;
  color: $textoIntro;
  @include fuenteTitle;
}
h2{
  text-align: center;
  color: $textoIntro;
  position: relative;
  @include fuenteTitle;
  font-size: 1.4rem;
}
#intro{
  height:  100vh;
  @include centradoXY;
  z-index: 10000;
  margin-left: 20%;
  margin-right: 20%;
  #content{
    height: 100vh;
    @include centradoXY;
    #nombre{
      @include fuenteNombre;
      font-size: 3em;
    }
    #logo{
      display: flex;
      justify-content: center;
      align-items:center;
      margin:3rem 0 3rem 0;
      .yo{
        width: 150px;
        position: absolute;
        z-index: 1;
      }
      .alaizq{
        width: 150px;
        padding-right: 1.8em;
      }
      .alader{
        width: 150px;
        padding-left: 1.8em;
      }
      #contenedorDatosGeneral{
        height: 100%;
        position: absolute;
        @include centradoXY;
        z-index: -200;
        #contenedorDatos{
          border-radius: 50%;
          background-color: $enlaces;
        }
      }
    }
    #social{
      padding:  1rem 0 1rem 0;
      i{
        color:$textoIntro;
        padding-right: 5px;
      }
    }
    #ilus, #anim, #prog{
      margin-top: 0px;
      margin-bottom: 0px;
      opacity: 0;
      font-size: 2em;
    }
  }
}

#flechaScroll {
  margin-top: 1em;
  opacity: 1;
  -webkit-animation: mover_flecha 0.8s ease infinite;
  -moz-animation: mover_flecha 0.8s ease infinite;
  animation: mover_flecha 0.8s ease infinite;
}
@-webkit-keyframes mover_flecha{
 0%{transform: translateY(-3px);}
 50%{transform: translateY(3px);}
100%{transform: translateY(-3px);}
}
@-moz-keyframes mover_flecha{
 0%{transform: translateY(-3px);}
 50%{transform: translateY(3px);}
100%{transform: translateY(-3px);}
}
@keyframes mover_flecha{
 0%{transform: translateY(-3px);}
 50%{transform: translateY(3px);}
100%{transform: translateY(-3px);}
}

.main{
  width: 100%;
  display: flex;
  position: absolute;
  z-index: 100;
}
@media only screen and ( min-width: 300px ) {
  #logo{
    margin:0;
  }
  .main{  
    .contenedor-central{
      display: flex;
      justify-content:center;
      width: 100%;
      .fondo{
        visibility: initial;
        display: block;
        margin: 0 auto;
        position: absolute;
        img{
          display: block;
          margin: 0 auto;
          @include altoAncho (100%, 300px);
        }
      }
      .ojos-cont{
        display: block;
        margin: 0 auto;        
        position: absolute;
        .ojos{
          visibility: initial;
          position: absolute;
          display: flex;
          justify-content:space-between;
          top: 730px;
          left: -48px;
          z-index: 0;
          .ojo1, .ojo2{
            @include altoAncho (12px, 7px);
            background-color: $ojos;
            border-radius: 50%;
          }
          .ojo2{
            @include altoAncho (14px, 9px);
          }
        }
      }
            // MARIKITA
      .marikita-cont{
        display: block;
        margin: 0 auto;        
        position: absolute;
        #marikita {
          visibility: initial;
          position: absolute;
          top: 550px;
          left: -25px;
          z-index: 30;
          img{
            width: 50px;
          }
        }
      }
      .bocadillos{
        visibility: initial;
        display: block;
        margin: 0 auto;        
        position: absolute;
        .boc-ilus{
          position: absolute;
          top: 200px;
          left: -170px;
          width: 110px;
        }
        .boc-anim{
          position: absolute;
          top: 170px;
          left: -60px;
          width: 110px;
        }
        .boc-prog{
          position: absolute;
          top: 195px;
          left: 50px;
          width: 115px;
        }
      }
      .enlaces-ilustracion, .enlaces-animacion{
        margin: 0 auto;        
        position: absolute;
        z-index: 1000;
        .i-uno, .i-dos, .i-tres, .a-uno, .a-dos, .a-tres{
          @include altoAncho (45px, 45px);
          position: absolute;
          border-radius: 50%;
          border: 3px solid $enlaces;
          @include centradoXY;
          overflow: hidden;
          img{
            width: 130%;
          }
        }
        //ENLACES ILUSTRACION
        .i-uno{
          top: 395px;
          left: 27px;
        }
        .i-dos{
          top: 400px;
          left: 85px;
        }
        .i-tres{
          top: 445px;
          left: 115px;
        }
        //ENLACES ANIMACION 
        .a-uno{
          top: 801px;
          left: 7px;
        }
        .a-dos{
          top: 784px;
          left: 60px;
        }
        .a-tres{
          top: 745px;
          left: 106px;
        }
      }
    }
    .secciones{
      display: block;
      position: absolute;
      height: 100vh;
      width: 100%;
      z-index: -100;
    }
  }
}
@media only screen and ( min-width: 400px ) {
  .main{  
    .contenedor-central{
      .fondo{
        img{
          @include altoAncho (100%, 400px);
        }
      }
      .ojos-cont{
        .ojos{
          top: 970px;
          left: -62px;
          .ojo1, .ojo2{
            @include altoAncho (13px, 8px);
          }
          .ojo2{
            @include altoAncho (15px, 10px);
          }
        }
      }
            // MARIKITA
      .marikita-cont{
        #marikita {
          top: 700px;
          left: -30px;
          img{
            width: 60px;
          }
        }
      }
      .bocadillos{
        .boc-ilus{
          top: 270px;
          left: -210px;
          width: 130px;
        }
        .boc-anim{
          top: 230px;
          left: -60px;
          width: 130px;
        }
        .boc-prog{
          top: 275px;
          left: 70px;
          width: 140px;
        }
      }
      .enlaces-ilustracion, .enlaces-animacion{
        .i-uno, .i-dos, .i-tres, .a-uno, .a-dos, .a-tres{
          @include altoAncho (60px, 60px);
        }
        //ENLACES ILUSTRACION
        .i-uno{
          top: 525px;
          left: 40px;
        }
        .i-dos{
          top: 538px;
          left: 115px;
        }
        .i-tres{
          top: 605px;
          left: 155px;
        }
        //ENLACES ANIMACION 
        .a-uno{
          top: 1067px;
          left: 5px;
        }
        .a-dos{
          top: 1044px;
          left: 75px;
        }
        .a-tres{
          top: 990px;
          left: 136px;
        }
      }
    }
  }
}
@media only screen and ( min-width: 500px ) {
  .main{  
    .contenedor-central{
      .fondo{
        img{
          @include altoAncho (100%, 485px);
        }
      }
      .ojos-cont{
        .ojos{
          top: 1185px;
          left: -77px;
          .ojo1, .ojo2{
            @include altoAncho (15px, 10px);
          }
          .ojo2{
            @include altoAncho (17px, 12px);
          }
        }
      }
            // MARIKITA
      .marikita-cont{
        #marikita {
          top: 1080px;
          left: -45px;
          img{
            width: 60px;
          }
        }
      }
      .bocadillos{
        .boc-ilus{
          top: 350px;
          left: -210px;
          width: 130px;
        }
        .boc-anim{
          top: 310px;
          left: -60px;
          width: 130px;
        }
        .boc-prog{
          top: 355px;
          left: 70px;
          width: 140px;
        }
      }
      .enlaces-ilustracion, .enlaces-animacion{
        .i-uno, .i-dos, .i-tres, .a-uno, .a-dos, .a-tres{
          @include altoAncho (60px, 60px);
        }
        //ENLACES ILUSTRACION
        .i-uno{
          top: 655px;
          left: 50px;
        }
        .i-dos{
          top: 665px;
          left: 140px;
        }
        .i-tres{
          top: 735px;
          left: 185px;
        }
        //ENLACES ANIMACION 
        .a-uno{
          top: 1291px;
          left: 15px;
        }
        .a-dos{
          top: 1264px;
          left: 95px;
        }
        .a-tres{
          top: 1200px;
          left: 136px;
        }
      }
    }
    .secciones{
      height: 200vh;
      width: 100%;
      .seccion{
        height: 25%;
        width: 100%;
      }
    }
  }
}
 @media only screen and ( min-width: 600px ) {
  .main{  
    .contenedor-central{
      .fondo{
        img{
          @include altoAncho (100%, 580px);
        }
      }
      .ojos-cont{
        .ojos{
          top: 1420px;
          left: -90px;
          .ojo1, .ojo2{
            @include altoAncho (16px, 11px);
          }
          .ojo2{
            @include altoAncho (18px, 13px);
          }
        }
      }
            // MARIKITA
      .marikita-cont{
        #marikita {
          top: 1220px;
          left: -55px;
          img{
            width: 80px;
          }
        }
      }
      .bocadillos{
        .boc-ilus{
          top: 400px;
          left: -250px;
          width: 170px;
        }
        .boc-anim{
          top: 360px;
          left: -80px;
          width: 160px;
        }
        .boc-prog{
          top: 405px;
          left: 80px;
          width: 175px;
        }
      }
      .enlaces-ilustracion, .enlaces-animacion{
        .i-uno, .i-dos, .i-tres, .a-uno, .a-dos, .a-tres{
          @include altoAncho (70px, 70px);
        }
        //ENLACES ILUSTRACION
        .i-uno{
          top: 775px;
          left: 70px;
        }
        .i-dos{
          top: 795px;
          left: 170px;
        }
        .i-tres{
          top: 885px;
          left: 222px;
        }
        //ENLACES ANIMACION 
        .a-uno{
          top: 1541px;
          left: 12px;
        }
        .a-dos{
          top: 1510px;
          left: 112px;
        }
        .a-tres{
          top: 1448px;
          left: 189px;
        }
      }
    }
   
  }
}
@media only screen and ( min-width: 800px ) {
 .main{  
    .contenedor-central{
      .fondo{
        img{
          width: 630px;
        }
      } 
      .ojos-cont{
        .ojos{
          top: 1535px;
          left: -97px;
          .ojo1{
            margin-right: 3px;
          }
          .ojo2{
            @include altoAncho (20px, 13px);
          }
        }
      } 
      .marikita-cont{
        #marikita {
          top: 1290px;
          left: -50px;
          img{
            width: 90px;
          }
        }
      }
      .bocadillos{
        .boc-ilus{
          top: 435px;
          left: -250px;
          width: 155px;
        }
        .boc-anim{
          top: 398px;
          left: -80px;
          width: 160px;
        }
        .boc-prog{
          top: 440px;
          left: 85px;
          width: 175px;
        }
      }
      .enlaces-ilustracion, .enlaces-animacion{  
        .i-uno, .i-dos, .i-tres, .a-uno, .a-dos, .a-tres{
          @include altoAncho (75px, 75px);
        }
        .i-uno{
          top: 843px;
          left: 75px;
        }
        .i-dos{
          top: 855px;
          left: 180px;
        }
        .i-tres{
          top: 946px;
          left: 240px;
        }
        //ENLACES ANIMACION 
        .a-uno{
          top: 1678px;
          left: 20px;
        }
        .a-dos{
          top: 1630px;
          left: 112px;
        }
        .a-tres{
          top: 1570px;
          left: 186px;
        }
      }
    }
     .secciones{
      height: 240vh;
      width: 100%;
    }
  }
}
@media only screen and ( min-width: 1024px ) {
 
  .main{
    .espacio-izq{
      width: 35%;
    }
    .contenedor-central{
      width:  635px;
      .fondo{
        img{
          width: 635px;
        }
      }
      .ojos-cont{
         .ojos{
            top: 1545px;
            left: -95px;
          .ojo1, .ojo2{
            @include altoAncho (16px, 11px);
          }
          .ojo2{
            @include altoAncho (20px, 13px);
          }
        }
      }
      .marikita-cont{
        #marikita {
          top: 1290px;
          left: -50px;
          width: 80px;
          img{
            width: 100%;
          }
        }
      }
      .bocadillos{
        .boc-ilus{
         left:-235px;
        }
        .boc-anim{
          left:-85px;
        }
        .boc-prog{
          left:70px;
        }
      }
      .enlaces-ilustracion, .enlaces-animacion{
        .i-uno, .i-dos, .i-tres, .a-uno, .a-dos, .a-tres{
          @include altoAncho (77px, 77px);
        }
        .i-uno{
          top: 851px;
          left: 81px;
        }
        .i-dos{
          top: 873px;
          left: 188px;
        }
        .i-tres{
          top: 958px;
          left: 247px;
        }
        .a-uno{
          top: 1685px;
          left: 12px;
        }
        .a-dos{
          top: 1645px;
          left: 118px;
        }
        .a-tres{
          top: 1586px;
          left: 205px;
        }
      }
    }
  }
}

            
          
!
            
              $(document).ready(function() {

	
function pinintro() {
	var pinIntro = new ScrollMagic.Scene({
		triggerElement: '#intro',
 		triggerHook: 0,
 	})

 	.setPin('#intro', {pushFollowers: false})
 	.addTo(controller);

}

//----------POSICIONAR CONTENEDOR PERFIL ---------------------------------------

function perfil(){
	var IntroTl = new TimelineMax();
	IntroTl

	new ScrollMagic.Scene({
		duration: '130%'
	})
	.setTween(IntroTl)
	.triggerElement($('body')[0])
	.addTo(controller);
}

//----------ALTO Y ANCHO CONTENEDOR PERFIL-------------------------------------------------------------
function xycont(){
	var IntroTl2 = new TimelineMax();
	IntroTl2
		.to('#flechaScroll', 1, {autoAlpha:0})

		.to('#intro', 4, {xPercent: '-50%'})
		.to('#contenedorDatos', 3, {height:300, width:300})
		.to('#contenedorDatos', 2, {css:{borderRadius: '10px'}})
		.to('#contenedorDatos', 2, {height:'80%'})
		.to('#contenedorDatos', 2, {css:{marginTop:120}})


	new ScrollMagic.Scene({
		duration: '90%'
	})
	.setTween(IntroTl2)
	.triggerElement($('body')[2])
	.addTo(controller);
}

//---------------TEXTO PAJARITOS ESCENA UNO-----------------------------
function birdstext(){
var bocadillos = new TimelineMax();
  bocadillos

    .fromTo('.boc-ilus', 1, {scale: 0},{scale: 1, delay:2})
    .fromTo('.boc-anim', 1, {scale: 0},{scale: 1})
    .fromTo('.boc-prog', 1, {scale: 0},{scale: 1})

 	new ScrollMagic.Scene({
		duration: '110%'
	})
	.setTween(bocadillos)
	.triggerElement('.seccion1')
	.addTo(controller);
}
//------------------FIJAR ESCENA UNO--------------------------------

function pinuno(){
	var pinescena1 = new ScrollMagic.Scene({
		triggerElement: '.seccion1',
 		triggerHook: 0,
 		duration:'60%'
 	})
	
 	.setPin('.contenedor-central')
 	.addTo(controller);
}

//------------------FIJAR ESCENA DOS--------------------------------
function pindos(){
var ilus = new TimelineMax();
  ilus
  .to('#marikita', 3,{bezier:{ values:[{y:-220, x:8 }, {y:-459, x:-52}],autoRotate:["x","y","rotation",90,false]}})
  .to('#ilus', 1, {autoAlpha: 1, scale: 0.7, ease:Power1.easeInOut},0)

var pinescena2 = new ScrollMagic.Scene({
		triggerElement: '.seccion2',
 		triggerHook: 0,
 		duration:'50%'
 	})
	
 	.setPin('.contenedor-central')
	.setTween(ilus)
 	.addTo(controller);
}

//------------------FIJAR ESCENA TRES-----------------------------------------------------
 	function pintres(){
var anim = new TimelineMax();
  anim

    .to('#anim', 1,  {autoAlpha: 1, scale: 0.7, ease: Power4.easeOut})
    .to('#prog', 1,  {autoAlpha: 1, scale: 0.7, ease: Power4.easeOut, delay:3})

 var pinescena3 = new ScrollMagic.Scene({
		triggerElement: '.seccion3',
 		triggerHook: 0,
 		duration:'50%'
 	})
	
 	.setPin('.contenedor-central')
	.setTween(anim)
 	.addTo(controller);
}
	//---------------------------MOVIMIENTO CONTINUO-----------------------------------------------------

function ojos(){

	var tl = new TimelineMax({repeat:-1}) 
		tl .from('.ojos', 0.2, {scaleY:'0px' , repeat:4, yoyo:true})
		   .from('.ojos', 0.2, {scaleY:'0px' , repeat:2, yoyo:true, delay:4})
}

var ancho = $(window).width(); 
var controller = new ScrollMagic.Controller();


	if (ancho <= 500) {

	} else if (ancho > 500 && ancho < 1024) {

	birdstext();
	pinuno();
	pindos();
	pintres();
	ojos();


	}
	else{
	pinintro();
	perfil();
	xycont();
	birdstext();
	pinuno();
	pindos();
	pintres();
	ojos();

	}

$(window).on('resize',function(){location.reload();});


});




            
          
!
999px
Loading ..................

Console