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







[HTML ¼Ò½º]

link(href='https://fonts.googleapis.com/css?family=Roboto+Condensed:700', rel='stylesheet', type='text/css')

h1 This text will be sliced

[CSS ¼Ò½º]
@import "nib"

body
  background #0099FF

h1
  display block

  absolute top 50% left 50%

  font-family 'Roboto Condensed'
  font-size 50px
  color #1A4C80

  text-transform uppercase

  transform translate(-50%, -50%)

  > span
    display block

    position relative

    float left
    
    overflow hidden

    white-space nowrap

    span
      position absolute


 
[JS¼Ò½º]

class Slicer {
  constructor(element, slices, orientation = 'vertical') {
    this.element = element;
    
    this.innerHTML = this.element.innerHTML;
    this.element.style.width = window.getComputedStyle(this.element).width;
    this.element.style.height = window.getComputedStyle(this.element).height;
    
    this.orientation = orientation;
    this.slices = slices;
  }
  
  get slices() {
    return this._slices;
  }
  
  set slices(slices) {
    this._slices = slices;
    this.slice();
  }
  
  slice () {
    var sliceSize = 100 / this.slices;
    
    var span = document.createElement('span');
    span.appendChild(document.createElement('span'));
    span.children[0].innerHTML = this.innerHTML;
    
    if (this.orientation === 'vertical') {
      span.style.width = sliceSize + '%';
      span.style.height = '100%';
    }
    else {
      span.style.width = '100%';
      span.style.height = sliceSize + '%';
    }
    
    while (this.element.firstChild) {
      this.element.removeChild(this.element.firstChild);
    }
    
    this.element.appendChild(span);
    
    var newSpan;
    for (var i = 1; i < this.slices; ++i) {
      newSpan = span.cloneNode(true);
      
      if (this.orientation === 'vertical') {
        newSpan.children[0].style.left = -i * this.slices * sliceSize + '%';
      }
      else {
        newSpan.children[0].style.top = -i * this.slices * sliceSize + '%';
      }

      this.element.appendChild(newSpan);
    }
  }
};

var slicer = new Slicer(document.querySelector('h1'), 116);

var gui = new dat.GUI();
gui.add(slicer, 'slices', 10, 500);

var animate = function () {
  var tl = new TimelineMax();

  tl.staggerFromTo('h1 > span:nth-child(even)', 0.2, {
    y: -20,
    opacity: 0
  }, {
    y: 0,
    opacity: 1
  }, 0.1, 'letter');
  
  tl.staggerFromTo('h1 > span:nth-child(odd)', 0.2, {
    y: 20,
    opacity: 0
  }, {
    y: 0,
    opacity: 1
  }, 0.1, 'letter');
};

var button = {
  animate: animate
};
gui.add(button, 'animate');

animate();



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