๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ปSTUDY/CSS

[CSS] transition, transition-delay, transform, calc vendor prefix

๋ฐ˜์‘ํ˜•

[CSS] transition, transition-delay, transform, calc vendor prefix

#1. transition / transition-delay vendor prefix

transition ์€ IE10๋ถ€ํ„ฐ ์ง€์›ํ•œ๋‹ค.

 

vendor prefixes

-webkit-transition : [transition-property] [transition-duration] [transition-timing-function] [transition-delay];
-moz-transition : [transition-property] [transition-duration] [transition-timing-function] [transition-delay];
-o-transition : [transition-property] [transition-duration] [transition-timing-function] [transition-delay];
transition : [transition-property] [transition-duration] [transition-timing-function] [transition-delay];

transition

 

 


vendor prefixes

๋งˆ์ฐฌ๊ฐ€์ง€๋กœ transition-delay๋„ IE10๋ถ€ํ„ฐ ์ง€์›๋˜๋ฉฐ transition๊ณผ prefix๊ฐ€ ๊ฐ™๋‹ค.

-webkit-transition-delay: 500ms;
-moz-transition-delay: 500ms;
-o-transition-delay: 500ms;
transition-delay: 500ms;

transition-delay

 

 

#2. transform prefix


vendor prefixes

-webkit-transform: value;
-moz-transofrm: value;
-ms-transform: value;
-o-transform: value;
transform: value;

transform

 

 

#3. calc prefix


MDN-calc

 

vendor prefixes

width: -webkit-calc(100% - 50px);
width: -moz-calc(100% - 50px);
width: calc(100% - 50px);

 

calc jquery๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๋ฐฉ๋ฒ•

<style>
  #foo { width: calc(100% - 100px); }
</style>
<script>
  $('#foo').css('width', '100%').css('width', '-=100px');
</script>

css calc jquery

 

๋ฐ˜์‘ํ˜•