move transition durations into custom properties
This commit is contained in:
parent
ee509c1f23
commit
246e441020
|
@ -9,7 +9,7 @@
|
|||
<div id="app" class="wrapper">
|
||||
<ul class="orbitals clockwise">
|
||||
|
||||
<li class="orbital bg bg--red pulse">
|
||||
<li class="orbital bg bg--red pulse shadow">
|
||||
<div class="orbital-content content-center anti-clockwise">
|
||||
<div class="feature">
|
||||
<div class="feature-item primary">
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
--duration__rotation: 50s;
|
||||
--duration__pulse: 1.5s;
|
||||
--duration__image-hover: 0.3s;
|
||||
--duration__feature-hover: 0.3s;
|
||||
|
||||
--width__container: calc(var(--width__inner-content) + var(--width__orbital) + var(--radius__orbital));
|
||||
}
|
||||
|
@ -121,7 +123,7 @@ ul, li {
|
|||
object-fit: cover;
|
||||
|
||||
&:last-child {
|
||||
transition: opacity .3s;
|
||||
transition: opacity var(--duration__image-hover);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
@ -151,7 +153,7 @@ ul, li {
|
|||
left: 0;
|
||||
border-radius: 50%;
|
||||
|
||||
transition: background-color 0.5s;
|
||||
transition: background-color var(--duration__feature-hover);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -199,7 +201,7 @@ ul, li {
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
transition: opacity 0.5s;
|
||||
transition: opacity var(--duration__feature-hover);
|
||||
|
||||
&:first-child {
|
||||
opacity: 1;
|
||||
|
|
Loading…
Reference in New Issue