HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<body>
<header id="intro">
<div id="content">
<h2 id="nombre">Eva Santos</h2>
<div id="logo">
<img class="alaizq" src="https://res.cloudinary.com/pastelitos/image/upload/v1610527188/eva/ala-izq_msqlcq.svg" alt="ala" />
<img class="yo" src="https://res.cloudinary.com/pastelitos/image/upload/v1610527212/eva/yo-circulo_rnt0jf.svg" alt="logo" />
<img class="alader" src="https://res.cloudinary.com/pastelitos/image/upload/v1610527181/eva/ala-der_p27xhh.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="https://res.cloudinary.com/pastelitos/image/upload/v1610527260/eva/arbolCV_athcou.svg" alt="arbol">
</div>
<!--MARIKITA -->
<div class="marikita-cont">
<div id="marikita">
<img src="https://res.cloudinary.com/pastelitos/image/upload/v1610527356/eva/marikita_ve8zbo.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="https://res.cloudinary.com/pastelitos/image/upload/v1610527388/eva/ilustracion_vqtuje.svg" alt="ilustracion">
<img class="boc-anim" src="https://res.cloudinary.com/pastelitos/image/upload/v1610527406/eva/animacion_jph73t.svg" alt="animacion">
<img class="boc-prog" src="https://res.cloudinary.com/pastelitos/image/upload/v1610527400/eva/programacion_zzfyzm.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/EgaoRd"><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();});
});
Also see: Tab Triggers