Merge pull request #1953 from mononaut/breathe-effect-framerate
limit pulsing blocks animation frame rate to 30FPS
This commit is contained in:
commit
6ead907e08
@ -114,7 +114,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.flashing {
|
.flashing {
|
||||||
animation: opacityPulse 2s ease-out;
|
/* force compositing */
|
||||||
|
will-change: opacity;
|
||||||
|
transform: translateZ(0);
|
||||||
|
/* effective max frame rate = (#keyframes - 1) x steps / duration */
|
||||||
|
animation: opacityPulse 2s steps(30, end);
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.flashing {
|
.flashing {
|
||||||
animation: opacityPulse 2s ease-out;
|
/* force compositing */
|
||||||
|
will-change: opacity;
|
||||||
|
transform: translateZ(0);
|
||||||
|
/* effective max frame rate = (#keyframes - 1) x steps / duration */
|
||||||
|
animation: opacityPulse 2s steps(30, end);
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user