Css3ÀÇ ¼Ó¼ºÁßÀÎ box-shadow¸¦ ÀÌ¿ëÇÏ¿© Á¾ÀÌ°¡ °ãÃÄ ÀÖ´Â ¸ð¾çÀ» ¸¸µé¼ö ÀÖ½À´Ï´Ù.
HTML
<div class="page"></div>
Css
.pape {
background: #fff;
box-shadow:
/* The top layer shadow */
0 1px 1px rgba(0,0,0,0.15),
/* The second layer */
0 10px 0 -5px #eee,
/* The second layer shadow */
0 10px 1px -4px rgba(0,0,0,0.15),
/* The third layer */
0 20px 0 -10px #eee,
/* The third layer shadow */
0 20px 1px -9px rgba(0,0,0,0.15);
/* Padding for demo purposes */
padding: 30px;
}
border°ªÀ» ÀÌ¿ëÇÏÁö ¾Ê°í ù¹ø° ºÎÅÍ ¼¼¹ø° ·¹À̾î±îÁö ¸ðµÎ box-shadow¸¦ ÀÌ¿ëÇÏ¿© ¸¸µé¾ú½À´Ï´Ù.
transform È¿°ú¸¦ ÀÌ¿ëÇϸé Á» ´õ Àç¹ÌÀÖ´Â È¿°úµµ ÁÙ¼ö ÀÖÀ¸´Ï Âü°í ÇϽøé ÁÁ°Ú½À´Ï´Ù.
º¸´Ù ÀÚ¼¼ÇÑ ³»¿ëÀº ȨÆäÀÌÁö ¸µÅ©³ª ¾Æ·¡ÀÇ ¸µÅ©ÁÖ¼Ò¸¦ Ŭ¸¯ÇÏ¿© È®ÀÎÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
https://css-tricks.com/snippets/css/stack-of-paper/
|