Hexo theme customization in past few days. And wish to borrow some concepts from Google’s Material Design.
The concept that I’m interested most in
Material Design is the Dimensionality. It identify visual area on the page with
By defining multiple shadow configuration, it creates layers in a 2-D space! Simple and efficient. What a graceful solution!
By referencing the Shadow Definition in the spec, I recreate the effect with plain CSS.
Clicking the div will shift the shadow depth.
Test it on Mobile, and found the top-shadow is not displayed properly. The reason is that I used
multiple-shadow to apply
Top Shadow and
Bottom Shadow to the same div. But according to Box-Shadow MDN Document,
Multiple shadows is only supported by iOS Safari with
-webkit- prefix. So it doesn’t work properly.
Even they’re functioning, either
Angular-JS is too intrusive or too heavy for simple page to use, such as blog. If you don’t really need these transition animations, to implement these basic effects, CSS3 should be enough.