0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

perf: remove SVG animation

This commit is contained in:
Nate Moore 2022-01-31 17:13:15 -06:00
parent f3b35023fd
commit f5424d15b4

View file

@ -1,25 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 1012 506">
<style>
.bg {
transform-origin: center center;
}
#banner {
animation: marquee 30s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
#banner {
animation-play-state: paused;
}
}
@keyframes marquee {
0% {
transform: translateX(66px);
}
100% {
transform: translateX(-130px);
}
}
</style>
<path fill="#F1BCBE" d="M0 0h1012v506H0z"/>
<g id="bgs" clip-path="url(#a)">

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB