diff --git a/public/images/php8/hero-bg-dark.webm b/public/images/php8/hero-bg-dark.webm new file mode 100644 index 0000000000..fcff1665a9 Binary files /dev/null and b/public/images/php8/hero-bg-dark.webm differ diff --git a/public/images/php8/hero-bg-light.webm b/public/images/php8/hero-bg-light.webm new file mode 100644 index 0000000000..70d4b16015 Binary files /dev/null and b/public/images/php8/hero-bg-light.webm differ diff --git a/public/styles/php85.css b/public/styles/php85.css index c6cc01da9e..15f2aa0143 100644 --- a/public/styles/php85.css +++ b/public/styles/php85.css @@ -468,48 +468,25 @@ a { object-fit: cover; width: 100%; height: 100%; - transition-property: opacity; - opacity: .35; - transition-duration: .5s; - transition-timing-function: cubic-bezier(.4, 0, .2, 1); -webkit-user-select: none; user-select: none; position: absolute } -.hero-orb-1-x, -.hero-orb-1-y, -.hero-orb-1-r, -.hero-orb-2-x, -.hero-orb-2-y, -.hero-orb-2-r, -.hero-orb-3-x, -.hero-orb-3-y, -.hero-orb-3-r { - transform-box: view-box; - transform-origin: 50% 50% -} - -.hero-orb-1-x { animation: hero-orb1-x 10s linear infinite alternate } -.hero-orb-1-y { animation: hero-orb1-y 10.5s linear infinite alternate } -.hero-orb-1-r { animation: hero-orb-rotate-fwd 7s linear infinite } - -.hero-orb-2-x { animation: hero-orb2-x 11.5s linear infinite alternate } -.hero-orb-2-y { animation: hero-orb2-y 12s linear infinite alternate } -.hero-orb-2-r { animation: hero-orb-rotate-fwd 12s linear infinite } - -.hero-orb-3-x { animation: hero-orb3-x 12.5s linear infinite alternate } -.hero-orb-3-y { animation: hero-orb3-y 6s linear infinite alternate } -.hero-orb-3-r { animation: hero-orb-rotate-rev 9s linear infinite } - -@keyframes hero-orb1-x { from { transform: translateX(25%) } to { transform: translateX(0%) } } -@keyframes hero-orb1-y { from { transform: translateY(0%) } to { transform: translateY(25%) } } -@keyframes hero-orb2-x { from { transform: translateX(-25%) } to { transform: translateX(0%) } } -@keyframes hero-orb2-y { from { transform: translateY(0%) } to { transform: translateY(50%) } } -@keyframes hero-orb3-x { from { transform: translateX(0%) } to { transform: translateX(25%) } } -@keyframes hero-orb3-y { from { transform: translateY(0%) } to { transform: translateY(25%) } } -@keyframes hero-orb-rotate-fwd { from { transform: rotate(0deg) } to { transform: rotate(360deg) } } -@keyframes hero-orb-rotate-rev { from { transform: rotate(360deg) } to { transform: rotate(0deg) } } +.hero .hero-bg-dark, +.hero .hero-bg-light:where(.dark,.dark *) { + display: none +} + +.hero .hero-bg-dark:where(.dark,.dark *) { + display: block +} + +@media (prefers-reduced-motion: reduce) { + .hero .hero-bg { + display: none !important + } +} .hero-badge { margin-bottom: calc(var(--spacing) * 6); diff --git a/src/Themes/ReleasePage.php b/src/Themes/ReleasePage.php index 29ba944b9b..f63a4e9023 100644 --- a/src/Themes/ReleasePage.php +++ b/src/Themes/ReleasePage.php @@ -36,16 +36,12 @@ public static function getHeroSection( return << - + +