Re:CSS Raindrops on a Window
by lbebber on Wednesday November 27, 2013 @10:06AM
(#6808357)
Hey, I made this thing.
Each rain drop takes an image, scales it down, rotates it 180ΒΊ, positions it according to the drop's position and crops in a round shape. Then a small border is added according to the drop's size. The trick is getting all those values right.
Re:CSS Raindrops on a Window
by Angostura on Wednesday November 27, 2013 @11:29AM
(#6809022)
Many thanks for answering. Much appreciated. Conceptually, I understand each of those steps. I'm much less clear on how the drop appears to refract the underlying image.
Each rain drop takes an image, scales it down, rotates it 180ΒΊ, positions it according to the drop's position and crops in a round shape. Then a small border is added according to the drop's size. The trick is getting all those values right.