½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
CSS¸¸À¸·Î ±¸ÇöÇÑ ÀÎÅÍ·¢Æ¼ºê 3D Ä«µå È¿°ú : happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > CSS > ±âº» ¼Ò½º > CSS¸¸À¸·Î ±¸ÇöÇÑ ÀÎÅÍ·¢Æ¼ºê 3D Ä«µå È¿°ú »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
javascript
HTML
PHP
Api
CSS
ASP
mysql
2022
Slide
jquery
¸ÞÀϸµ
¸ðµâ
°¶·¯¸®
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
CSS¸¸À¸·Î ±¸ÇöÇÑ ÀÎÅÍ·¢Æ¼ºê 3D Ä«µå È¿°ú
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù ±âº» ¼Ò½º
´Ù¿î·Îµå Ƚ¼ö 100 ȸ
°£´Ü¼³¸í ¸¶¿ì½º ¿òÁ÷ÀÓ¿¡ µû¶ó Ä«µå°¡ ±â¿ï¾îÁö¸ç ÀÔüÀûÀ¸·Î ¹ÝÀÀÇÏ´Â 3D ÀÎÅÍ·¢¼Ç È¿°ú
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

¸¶¿ì½º ¿òÁ÷ÀÓ¿¡ µû¶ó Ä«µå°¡ ÀÚ¿¬½º·´°Ô ±â¿ï¾îÁö¸ç
ÀÔüÀûÀ¸·Î ¹ÝÀÀÇÏ´Â 3D ÀÎÅÍ·¢¼Ç È¿°ú¸¦ CSS·Î ±¸ÇöÇÑ ¿¹Á¦ÀÔ´Ï´Ù.

transform, perspective, hover ¼Ó¼ºÀ» Ȱ¿ëÇÏ¿©
º°µµÀÇ JavaScript ¾øÀ̵µ Ä«µå°¡ ½ÇÁ¦·Î ¿òÁ÷ÀÌ´Â µíÇÑ µ¿ÀûÀÎ UI È¿°ú¸¦ Ç¥ÇöÇÒ ¼ö ÀÖ½À´Ï´Ù.

Ä«µåÇü ·¹À̾ƿô, ¼­ºñ½º ¼Ò°³ ¿µ¿ª, »óǰ ¸®½ºÆ® µî ´Ù¾çÇÑ UI µðÀÚÀο¡ Àû¿ëÇϱâ ÁÁÀ¸¸ç,
°£´ÜÇÑ Äڵ常À¸·Îµµ ¼¼·ÃµÈ ÀÎÅÍ·¢¼ÇÀ» ±¸ÇöÇÒ ¼ö ÀÖ´Â È¿°úÀûÀÎ ¿¹Á¦ÀÔ´Ï´Ù.




HTML ±¸Á¶

- const DATA = [

- '1540968221243-29f5d70540bf', 

- '1596135187959-562c650d98bc', 

- '1628944682084-831f35256163', 

- '1590013330451-3946e83e0392', 

- '1590421959604-741d0eec0a2e', 

- '1572613000712-eadc57acbecd', 

- '1570097192570-4b49a6736f9f', 

- '1620789550663-2b10e0080354', 

- '1617775623669-20bff4ffaa5c', 

- '1548600916-dc8492f8e845', 

- '1573824969595-a76d4365a2e6', 

- '1633936929709-59991b5fdd72'

- ];

- const N = DATA.length;


.scene

.a3d(style=`--n: ${N}`)

- for(let i = 0; i < N; i++)

img.card(src=`https://images.unsplash.com/photo-${DATA[i]}?w=280` 

         style=`--i: ${i}` alt='jellyfish')


//- generates this kind of HTML:

//- <div class="scene">

//- <div class="a3d" style="--n: 12">

//- <img class="card" src="image0.jpg" style="--i: 0" alt="image description"/>

//- <img class="card" src="image1.jpg" style="--i: 1" alt="image description"/>

//- <!-- the rest of the cards -->

//- </div>

//- </div>



CSS ¼Ò½º

/* ====== Relevant CSS ====== */

.scene, .a3d { display: grid }


.scene {

/* prevent scrollbars */

overflow: hidden;

/* for 3D look; smaller = more extreme effect */

perspective: 35em;

mask: /* lateral fade */

linear-gradient(90deg, 

#0000, red 20% 80%, #0000)

}


.a3d {

place-self: center /* middle align */;

/* don't flatten 3D transformed children 

* of this parent having its own 3D transform */

transform-style: preserve-3d;

animation: ry 32s linear infinite

}

/* simplest y axis rotation */

@keyframes ry { to { rotate: y 1turn } }


.card {

/* base card width, you may change this */

--w: 17.5em;

/* compute base angle corresponding to a card */

--ba: 1turn/var(--n); /* in the future: sibling-count() */

grid-area: 1/ 1 /* stack in same one grid cell */;

width: var(--w);

aspect-ratio: 7/ 10;

object-fit: cover;

border-radius: 1.5em;

/* don't want to see back of cards in front of screen plane */

backface-visibility: hidden;

/* need to use a transform chain here, cannot use separate 

* rotate & translate properties because they'd be applied 

* in wrong order (translate, then rotate) for what we need */

transform: 

/* rotate around y axis; in the future: sibling-index() */

rotatey(calc(var(--i)*var(--ba)))

/* only after that translate along z axis with minus */

translatez(calc(-1*(.5*var(--w) + .5em)/tan(.5*var(--ba))))

}


@media (prefers-reduced-motion: reduce) {

.a3d { animation-duration: 128s }

}


/* ====== General page prettifying and layout ====== */

html, body { display: grid }


html { height: 100% }


body { background: #fff3ed }

 


³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð Àǰ߳²±â±â
µî·ÏµÈ ÀǰßÀÌ ¾ø½À´Ï´Ù.
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöŰ
 50789525 º¸ÀÌ´Â µµ¹è¹æÁö۸¦ ÀÔ·ÂÇϼ¼¿ä.