add pulse to orbitals background
This commit is contained in:
parent
2baaa573f5
commit
b425b2dd1a
16
index.html
16
index.html
|
@ -8,14 +8,14 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="app" class="wrapper">
|
<div id="app" class="wrapper">
|
||||||
<ul class="orbitals clockwise">
|
<ul class="orbitals clockwise">
|
||||||
<li class="orbital bg-red"><div class="orbital-content content-center anti-clockwise"><p>Hallo!</p></div></li>
|
<li class="orbital bg bg--red pulse"><div class="orbital-content content-center anti-clockwise"><p>Hallo!</p></div></li>
|
||||||
<li class="orbital bg-green"><div class="orbital-content"></div></li>
|
<li class="orbital bg bg--green"><div class="orbital-content"></div></li>
|
||||||
<li class="orbital bg-blue"><div class="orbital-content"></div></li>
|
<li class="orbital bg bg--blue"><div class="orbital-content"></div></li>
|
||||||
<li class="orbital bg-red"><div class="orbital-content content-center anti-clockwise"><p>How's things?</p></div></li>
|
<li class="orbital bg bg--red"><div class="orbital-content content-center anti-clockwise"><p>How's things?</p></div></li>
|
||||||
<li class="orbital bg-green"><div class="orbital-content"></div></li>
|
<li class="orbital bg bg--green"><div class="orbital-content"></div></li>
|
||||||
<li class="orbital bg-blue"><div class="orbital-content"></div></li>
|
<li class="orbital bg bg--blue"><div class="orbital-content"></div></li>
|
||||||
<li class="orbital bg-red"><div class="orbital-content"></div></li>
|
<li class="orbital bg bg--red"><div class="orbital-content"></div></li>
|
||||||
<li class="orbital bg-green"><div class="orbital-content"></div></li>
|
<li class="orbital bg bg--green"><div class="orbital-content"></div></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="inner-content">
|
<div class="inner-content">
|
||||||
<div class="image-hover">
|
<div class="image-hover">
|
||||||
|
|
47
style.css
47
style.css
|
@ -16,6 +16,7 @@ body, html {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 80vw;
|
width: 80vw;
|
||||||
height: 80vh;
|
height: 80vh;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
|
||||||
|
@ -131,16 +132,35 @@ ul, li {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-red {
|
.bg {
|
||||||
background-color: rgba(255, 200, 200);
|
&::before {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-green {
|
.bg--red {
|
||||||
background-color: rgba(200, 255, 200);
|
&::before {
|
||||||
|
background-color: rgba(255, 200, 200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-blue {
|
.bg--green {
|
||||||
background-color: rgba(200, 200, 255);
|
&::before {
|
||||||
|
background-color: rgba(200, 255, 200);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg--blue {
|
||||||
|
&::before {
|
||||||
|
background-color: rgba(200, 200, 255);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.clockwise {
|
.clockwise {
|
||||||
|
@ -151,6 +171,12 @@ ul, li {
|
||||||
animation: rotate 20s reverse linear infinite;
|
animation: rotate 20s reverse linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pulse {
|
||||||
|
&::before {
|
||||||
|
animation: pulse 2s alternate ease-in-out infinite;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes rotate {
|
@keyframes rotate {
|
||||||
from {
|
from {
|
||||||
transform: rotate(0);
|
transform: rotate(0);
|
||||||
|
@ -159,3 +185,12 @@ ul, li {
|
||||||
transform: rotate(360deg);
|
transform: rotate(360deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes pulse {
|
||||||
|
from {
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: scale(1.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue