Explorer
project
bells.mp3
hint.md
index.css
index.html
index.js
Dependencies
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
:root {
--wine-red: #C7375F;
--bright-red: #D42D2F;
--dark-green: #344D2F;
--light-green: #77A047;
--gold: #FAC57D;
--snow: #F0F4F7;
}
html, body {
margin: 0;
padding: 0;
}
body,
.container {
display: flex;
justify-content: center;
align-items: center;
}
body {
background-color: var(--bright-red);
height: 100vh;
background-image: url("https://cdn.pixabay.com/photo/2018/12/30/03/05/jungle-3902531_960_720.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
text-shadow: 1px 1px 1px whitesmoke;
}
.container {
background: var(--snow);
color: var(--wine-red);
flex-direction: column;
border-radius: 10px;
padding: 1em;
font-size: 35px;
min-width: 300px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
background: rgba(0, 0, 0, .7);
border: 3px solid whitesmoke;
}
.material-icons-outlined {
padding-top: 5px;
margin: 0;
font-size: 30px;
}
button {
padding: 0.25em 0.5em;
border: none;
font-size: 1.2rem;
background-color: var(--dark-green);
color: var(--snow);
border-radius: 50%;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}
button:hover {
cursor: pointer;
transform: scale(1.02)
}
.pause-btn {
background-color: var(--gold);
color: var(--wine-red)
}
.stop-btn {
background-color: var(--wine-red);
}
.animate {
/* border: 3px solid green; */
display: inline-block;
animation-name: ring;
animation-duration: 2.75s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-play-state: paused;
}
@keyframes ring {
/* animation here */
0%{
transform: rotate(-45deg);
}
10% {
transform: rotate(0deg);
}
20%{
transform: rotate(45deg);
}
30%{
transform: rotate(0deg);
}
40%{
transform: rotate(-45deg);
}
50% {
transform: rotate(0deg);
}
60%{
transform: rotate(45deg);
}
70%{
transform: rotate(0deg);
}
80%{
transform: rotate(-45deg);
}
90% {
transform: rotate(0deg);
}
100%{
transform: rotate(45deg);
}
}