Commits

Tomasz Stachowiak committed e04bd14

now the reflections fades in and out as well

  • Participants
  • Parent commits 97e61d4

Comments (0)

Files changed (2)

genBlurredReflections.py

 import scipy
 from math import *
 
-extsize = 24
+extsize = 28
 
 
 def toLinear(x):
 
 		w, h = im.size
 
-		im2 = Image.new("RGBA", (im.size[0] + extsize*2, int(im.size[1] * 0.7)))
+		im2 = Image.new("RGBA", (im.size[0] + extsize*2, 80))
 
 		for y in range(im2.size[1]):
 			for x in range(im2.size[0]):
 				radius = float(y) / 2
-				#radius += 1
+				radius += 0.2
 				alpha = float(im2.size[1] - y) / im2.size[1]
 				alpha *= alpha
-				alpha *= 0.5
+				#alpha *= 0.75
 				im2.putpixel((x, y), blur(im, (x-extsize, y), radius, 50, alpha))
 
-		im2.save("output/code/%sRefl.png" % match.group(1), "PNG", optimize=1)
+		im2.save("output/code/%sRefl.png" % match.group(1), "PNG", optimize=1)
 	z-index: 1;
 }
 
-table.projectsTable td a img:hover {
+table.projectsTable td a:hover img {
 	opacity: 1.0;
 }
 
+table.projectsTable td a + div img {
+	opacity: 0.4;
+	-webkit-transition: opacity 0.1s ease-out;
+}
+
+table.projectsTable td a:hover + div img {
+	opacity: 0.7;
+}
+
 table.projectsTable td strong a {
 	color: #f0f0f0;
 	font-family: "Palatino Linotype", "Book Antiqua", _Palatino, "URW Palladio L", serif;
 
 div.reflWrap {
 	position:relative;
-	left: -24px;
+	left: -28px;
 	top: -26px;
 }
 
 	-moz-box-shadow: none !important;
 	border-radius: 0px !important;
 	-moz-border-radius: 0px !important;
-	max-width: 304px !important;
+	max-width: 312px !important;
+	z-index: 1;
 }