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