Explorar o código

Add support for many browsers in figcaption animation

Danilo Gómez Gómez %!s(int64=5) %!d(string=hai) anos
pai
achega
13ece2cea2
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      static/css/main.css

+ 6 - 2
static/css/main.css

@@ -261,10 +261,14 @@ figure figcaption {
 	background-color: white;
 	bottom: 0;
 	width: calc(100% - 2 * var(--caption-hmargin));
-	transform: translateY(100%);
+  -webkit-transform: translateY(100%);
+      -ms-transform: translateY(100%);
+          transform: translateY(100%);
 }
 figure:hover figcaption {
-	transform: translateY(0);
+  -webkit-transform: translateY(0);
+      -ms-transform: translateY(0);
+          transform: translateY(0);
 	transition: .3s ease;
 }
 figcaption h1 {