mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
Change animation speed
This commit is contained in:
parent
f0d1e7c565
commit
3e24d6f8ac
@ -53,7 +53,7 @@ limitations under the License.
|
|||||||
font-size: $font-14px;
|
font-size: $font-14px;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
animation: recording-pulse 1.5s infinite;
|
animation: recording-pulse 2s infinite;
|
||||||
|
|
||||||
content: '';
|
content: '';
|
||||||
background-color: $voice-record-live-circle-color;
|
background-color: $voice-record-live-circle-color;
|
||||||
@ -84,14 +84,17 @@ limitations under the License.
|
|||||||
// midpoint: lamps take longer to turn off than they do to turn on, and the
|
// midpoint: lamps take longer to turn off than they do to turn on, and the
|
||||||
// extra frames give it a bit of a realistic punch for when the animation is
|
// extra frames give it a bit of a realistic punch for when the animation is
|
||||||
// ramping back up to 100% opacity.
|
// ramping back up to 100% opacity.
|
||||||
|
//
|
||||||
|
// Target animation timings: steady for 1.5s, fade out for 0.3s, fade in for 0.2s
|
||||||
|
// (intended to be used in a loop for 2s animation speed)
|
||||||
@keyframes recording-pulse {
|
@keyframes recording-pulse {
|
||||||
0% {
|
0% {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
65% {
|
35% {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
100% {
|
65% {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user