• 회원가입
  • 로그인
  • 구글아이디로 로그인

[DOM_Style] JS - backfaceVisibility 속성 - 3D요소 뒷면노출 설정/반환 (IE10 이상)

backfaceVisibility 예제

 

<style> 

#hz {

  width: 300px;

  height: 100px;

  background: tomato;

  color: white;

  -webkit-animation: hzmove 2s infinite linear alternate; /* Chrome, Safari, Opera */

  animation: hzmove 2s infinite linear alternate;

}


@-webkit-keyframes hzmove { /* Chrome, Safari, Opera */

  to {-webkit-transform: rotateY(180deg);}

}


@keyframes hzmove {

  to {transform: rotateY(180deg);}

}

</style>


<div id="hz">

  <h1>홈짱닷컴 Homzzang.com</h1>

</div>


<input type="checkbox" onclick="homzzang(this)" checked>backface-visibility 체크유무 비교


<script>

function homzzang(x) {

  if (x.checked === true) {

    document.getElementById("hz").style.WebkitBackfaceVisibility = "visible"; // Chrome, Safari, Opera

    document.getElementById("hz").style.backfaceVisibility = "visible";

  } else {

    document.getElementById("hz").style.WebkitBackfaceVisibility = "hidden"; // Chrome, Safari, Opera

    document.getElementById("hz").style.backfaceVisibility = "hidden";

  }

}

</script>

 

결과보기

 

 

backfaceVisibility 정의

 

요소회전 중 뒷면보이기 여부 설정/반환

 


 

1.

IE10 이상 주요 최신 브라우저 모두 지원.

 

2.

CSS3

 

 

 

backfaceVisibility 구문

 

[반환]

object.style.backfaceVisibility

 

[설정]

object.style.backfaceVisibility = "visible|hidden|initial|inherit"

 


 

[속성값]

 

visible

뒷면 보이기. (기본값)

 

hidden

뒷면 숨기기.

 

initial

이 속성의 기본값으로 자동 설정.

 

inherit

부모요소 속성값 상속.

 



분류 제목
HTML_Objects JS - <input type="submit"> 객체 - submit타입 input태그 (= 인풋서브미트태그…
HTML_Objects JS - <input type="text"> 객체 ★ - text타입 input태그 (= 인풋텍스트태그) ※…
HTML_Objects JS - <input type="time"> 객체 - time타입 input태그 (= 인풋타임태그) ※ 시간…
HTML_Objects JS - <input type="url"> 객체 - url타입 input태그 (= 인풋유알엘태그) ※ 웹주소…
HTML_Objects JS - <input type="week"> 객체 - week타입 input태그 (= 인풋위크태그) ※ 주 …
HTML_Objects JS - <kbd> 객체 - 키보드입력키 (= kbd태그 = 키보드태그)
HTML_Objects JS - <label> 객체 ★ - input태그꼬리표 (= label태그 = 라벨태그/레이블테그) (HTM…
HTML_Objects JS - <legend> 객체 - fieldset 제목/설명 (= legend태그 = 레전드태그) (HTML…
HTML_Objects JS - <li> 객체 ★ - 리스트목록 (= li태그 = 리스트태그) (HTML5수정)
HTML_Objects JS - <link> 객체 ★ - 외부소스연결 (= link태그 = 링크태그) (HTML5수정)
HTML_Objects JS - <map> 객체 - 이미지맵 (= map태그 = 이미지맵태그) ※ 이미지 특정 부분에 링크
HTML_Objects JS - <mark> 객체 - 형광펜칠하기 (= mark태그 = 마크태그) (HTML5추가, IE9)
HTML_Objects JS - <menu> 객체 - 명령어메뉴목록 (= menu태그 = 메뉴태그) ※ 아직 지원X
HTML_Objects JS - <menuitem> 객체 - 마우스오른쪽 팝업메뉴 (= menuitem태그 = 메뉴아이템태그) (H…
HTML_Objects JS - <meta> 객체 ★ - 메타정보 (= meta태그 = 메타태그) (HTML5수정) + 모바일주소창…
HTML_Objects JS - <meter> 객체 - 게이지바 (= meter태그 = 미터태그) : (IE:지원X)
HTML_Objects JS - <nav> 객체 ★ - 네비게이션링크모음 (= nav태그 = 네브태그 = 네비게이션태그) (IE9…
HTML_Objects JS - <object> 객체 - 미디어삽입 (= object태그 = 어브젝트태그)
HTML_Objects JS - <ol> 객체 ★ - 순서있는리스트 (= 목록태그 = ol태그 = 오엘태그 = 올태그 = 오더드 리…
HTML_Objects JS - <optgroup> 객체 - 옵션그룹 (= optgroup태그 = 옵트그룹태그/옵션그룹태그) ※ 선…
58/67
목록
찾아주셔서 감사합니다. Since 2012