Explorar el Código

transition

Ref:
https://stackoverflow.com/questions/19808764/transition-for-background-image-in-firefox?noredirect=1&lq=1
Manav Rathi hace 1 año
padre
commit
57dae1d333
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      web/apps/cast/src/components/Slide.tsx

+ 3 - 0
web/apps/cast/src/components/Slide.tsx

@@ -23,6 +23,9 @@ export const SlideView: React.FC<SlideViewProps> = ({ url, nextURL }) => {
                 backgroundRepeat: "no-repeat",
                 backgroundBlendMode: "multiply",
                 backgroundColor: "rgba(0, 0, 0, 0.5)",
+                // Smooth out the transition a bit.
+                // Does not work in Firefox.
+                transition: "background 2s",
             }}
         >
             <div