Re:CSS Raindrops on a Window
by Angostura on Wednesday November 27, 2013 @06:57AM
(#6807605)
Enthusiastic noob here. I can usually fathom what is going in these neat CSS demos, but this one baffles me. Could someone provide a few pointers as to how it's doing what it does?
[ Parent
| on HN ]
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.
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.
Appears to be using cubic bezier CSS3 Transitions. https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using...