๋ฐ์ํ
[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];
vendor prefixes
๋ง์ฐฌ๊ฐ์ง๋ก transition-delay๋ IE10๋ถํฐ ์ง์๋๋ฉฐ transition
๊ณผ prefix๊ฐ ๊ฐ๋ค.
-webkit-transition-delay: 500ms;
-moz-transition-delay: 500ms;
-o-transition-delay: 500ms;
transition-delay: 500ms;
#2. transform prefix
vendor prefixes
-webkit-transform: value;
-moz-transofrm: value;
-ms-transform: value;
-o-transform: value;
transform: value;
#3. calc prefix
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>
๋ฐ์ํ
'๐ฉ๐ปโ๐ปSTUDY > CSS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[CSS] padding position ์์ญ (0) | 2020.07.07 |
---|---|
[CSS] height: 100% VS height: auto (0) | 2020.07.02 |
[CSS] opacity / visibility / display ์ฐจ์ด์ (0) | 2020.03.31 |
[CSS] ๋ฐ์ํ ์ด๋ฏธ์ง ๋ฃ๊ธฐ (0) | 2020.03.31 |
[CSS] @media query (0) | 2020.03.26 |