Hey friends, what's the simplest way to create a shimmer effect a la FB mobile loading skeleton? I figured out a hacky solution earlier, but it was so bloated.
6 Comments
George Kedenburg III
share the hacky solution!
Ben Lee
A background radial-gradient?
George Kedenburg III
Stephanie are you asking how to create the shimmer visual effect, or how to structure it logically in your project?
Code's unfortunately a bit messy, but on the plus side, it's a native solution :)
Javier Díaz
You could have a seamless gradient that you loop continuously, then offset the color of every component depending on the minY and modulate based on time.
6 Comments