scrimba
Note at 1:29
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Note at 1:29
AboutCommentsNotes
Note at 1:29
Expand for more info
index.css
run
preview
console
:root {
--wine-red: #C7375F;
--bright-red: #D42D2F;
--dark-green: #344D2F;
--light-green: #77A047;
--gold: #FAC57D;
--snow: #F0F4F7;
}

html, body {
margin: 0;
padding: 0;
}

body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
color: var(--dark-green);
background-color: var(--snow);
color: var(--bright-red);
background-image: url("https://images.unsplash.com/photo-1545048702-79362596cdc9?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80");
background-repeat: no-repeat;
background-position: center;
background-size: cover
}

.container {
display: flex;
justify-content: center;
align-items: center;
margin: 2em;
flex-direction: column;
min-width: 200px;
min-height: 200px;
max-width: 5ch;
background: rgba(270,270,270,.85);
padding: 1em 2em;
border-radius: 5px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

h1 {
margin: 0;
color: var(--snow);
text-shadow: 2px 2px var(--bright-red);
}

.greeting-text {
color: var(--bright-red);
font-size: 30px;
}

select {
height: 70px;
width: 260px;
border: 3px solid var(--dark-green);
border-radius: 5px;
padding: 0.2em 0.3em;
font-size: 30px;
color: var(--dark-green);
cursor: pointer;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}
.typewriter {
overflow: hidden;
border-right: .15em solid var(--bright-red);
/* white-space: nowrap; */
margin: 0 auto; /* Gives that scrolling effect as the typing happens */
letter-spacing: .15em; /* Adjust as needed */
animation:
typing 3.5s steps(40, end),
blink-caret .75s step-end infinite;
}
.candy-cane{
background: repeating-linear-gradient(
45deg,
var(--bright-red),
var(--bright-red) 30px,
var(--dark-green) 30px,
var(--dark-green) 60px
);
background-clip: text;
color: transparent;
-webkit-background-clip: text;
animation: 40s linear 0s infinite move;
}
.bounce {
animation-name: bounce;
animation-duration: 2.5s;
animation-fill-mode: both;
animation-iteration-count: 2;
}
.rubber-band {
animation-name: rubber-band;
animation-duration: 2.5s;
animation-fill-mode: both;
animation-iteration-count: 2;
}

@keyframes bounce {
0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
40% {transform: translateY(-30px);}
60% {transform: translateY(-15px);}
}


@keyframes move {
from {
background-position: 0px;
}
to {
background-position: 1000px;
}
}

@keyframes rubber-band {
0% {transform: scale(1);}
30% {transform: scaleX(1.25) scaleY(0.75);}
40% {transform: scaleX(0.75) scaleY(1.25);}
60% {transform: scaleX(1.15) scaleY(0.85);}
100% {transform: scale(1);}
}


/* The typing effect */
@keyframes typing {
from { width: 0 }
to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
from, to { border-color: transparent }
50% { border-color: var(--bright-red); }
}
Console
/index.html
LIVE