{"id":3275,"date":"2012-03-20T04:13:46","date_gmt":"2012-03-19T19:13:46","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=3275"},"modified":"2012-03-20T05:34:31","modified_gmt":"2012-03-19T20:34:31","slug":"3275","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=3275","title":{"rendered":"JavaScript\u3067CSS3\u30b9\u30bf\u30a4\u30eb\u8a2d\u5b9a : css3\u3068JavaScript\u306e\u9023\u643a"},"content":{"rendered":"<p>JavaScript\u3092\u7528\u3044\u305fCSS\u306e\u30b9\u30bf\u30a4\u30eb\u5909\u66f4\u306f\u901a\u5e38\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">element.style.backgroundColor = \"#ff00000\";<\/pre>\n<p>\u306a\u3069\u306e\u3088\u3046\u306b <strong>element.style.attribute = value;<\/strong><\/p>\n<p>\u3067\u5909\u66f4\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>CSS3\u306e\u30d9\u30f3\u30c0\u30fc\u30d7\u30ea\u30d5\u30a3\u30c3\u30af\u30b9\u4ed8\u304d\u306e\u30b9\u30bf\u30a4\u30eb\u5909\u66f4\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b<\/p>\n<p><strong>css3<\/strong><\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">-webkit-transform:translate(100px,0);<\/pre>\n<p>\u306b\u5909\u66f4\u3059\u308b\u5834\u5408\u3001<\/p>\n<p><strong>javaScript<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">.style.webkitTransform = \"translate(100px,0)\";<\/pre>\n<p>webkitTransform\u3067-webkit-\u306e\u30d9\u30f3\u30c0\u30fc\u30d7\u30ea\u30d5\u30a3\u30af\u30b9\u4ed8\u304d\u306e\u6307\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306e\u30d6\u30e9\u30a6\u30b6\u306e\u30d9\u30f3\u30c0\u30fc\u30d7\u30ea\u30d5\u30a3\u30c3\u30af\u30b9\u306f &#8216;transform&#8217;, &#8216;MozTransform&#8217;, &#8216;msTransform&#8217;, &#8216;OTransform&#8217; \u3067\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>webkit\u306e\u6307\u5b9a\u306f\u300cwebkit\u300d\u3067\u3082\u300cWebkit\u300d\u3067\u3082\u8a8d\u8b58\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u6b63\u3057\u304f\u306fwebkit\u3068\u6700\u521d\u306f\u5c0f\u6587\u5b57\u306e\u3088\u3046\u3067\u3059\u3002 \u305d\u306e\u3042\u3068\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u57fa\u672c -\u7121\u3057\u3067\u982d\u3092\u5927\u6587\u5b57\u3067\u8a2d\u5b9a\u306f\u53ef\u80fd\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<h4>JavaScript\u00a0CSS3\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a<\/h4>\n<p><strong>-webkit-transform<br \/><\/strong><strong>\u4f8b\uff1a<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">element.style.webkitTransform = \"translate(100px,100px) rotate(30deg)\";\r\nelement.style.webkitTransformOrigin = \"left top\";<\/pre>\n<p><strong>-webkit-transition\u00a0<\/strong><\/p>\n<p><strong>\u4f8b\uff1a<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">element.style.webkitTransitionProperty = \"-webkit-transform\";\r\nelement.style.webkitTransitionDelay= \"0.2s\";\r\nelement.style.webkitTransitionDuration = \"0.5s\";\r\nelement.style.webkitTransitionTimingFunction = \"ease-out\";<\/pre>\n<p><strong>-webkit-border-radius\u00a0<\/strong><\/p>\n<p><strong>\u4f8b\uff1a<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">element.style.webkitBorderRadius = \"50px\";<\/pre>\n<p><strong>-webkit-box-shadow<\/strong><\/p>\n<p><strong> \u4f8b\uff1a<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">element.style.webkitBoxShadow = \"2px 2px 6px 2px rgba(0,0,0,0.7)\";<\/pre>\n<p><strong>-webkit-gradient\u00a0<\/strong><\/p>\n<p><strong>\u4f8b\uff1a<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">element.style.background = \"-webkit-gradient(linear, left top, left bottom, from(#990), color-stop(0.5,#f0f), to(#066))\";<\/pre>\n<p><strong>-webkit-animation\u00a0<\/strong><\/p>\n<p><strong>\u4f8b\uff1a<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">element.style.WebkitAnimationName = \"test\";\r\nelement.style.WebkitAnimationDuration = \"400ms\";\r\nelement.style.webkitAnimationIterationCount = 10;\r\nelement.style.webkitAnimationTimingFunction = \"ease-in-out\";<\/pre>\n<p>\u7b49\u3005\u3067css3\u306e\u8a2d\u5b9a\u304c\u884c\u3048\u307e\u3059\u3002 \u3053\u308c\u3089\u306fHTML\u306b\u30a4\u30f3\u30e9\u30a4\u30f3\u3067\u8ffd\u52a0\u3055\u308c\u308b\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<p><strong>\u30c7\u30e2\u30da\u30fc\u30b8<\/strong> <a href=\"http:\/\/webcyou.com\/demo\/js\/css3\/index.html\" target=\"_blank\">http:\/\/webcyou.com\/demo\/js\/css3\/index.html<\/a><\/p>\n<h4>\u307e\u3068\u3081<\/h4>\n<table style=\"width: 700px; border-width: 1px; border-color: #999999; border-style: solid; padding: 3px;\" border=\"1\" frame=\"box\" cellspacing=\"0\" cellpadding=\"2\" align=\"left\">\n<tbody>\n<tr>\n<td style=\"background-color: #eeeeee; text-align: center;\"><strong>CSS3<\/strong><\/td>\n<td style=\"background-color: #eeeeee; text-align: center;\"><strong>JavaScript<\/strong><\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> box-shadow<\/td>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?-->elemmnt.style.webkitBoxShadow<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transform<\/td>\n<td>elemmnt.style.webkitTransform<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transform:translate<\/td>\n<td>elemmnt.style.webkitTransform = &#8220;translate(px,px)&#8221;;<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transform:scale<\/td>\n<td>elemmnt.style.webkitTransform = &#8220;scale(x,y)&#8221;;<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transform:rotate<\/td>\n<td>elemmnt.style.webkitTransform = &#8220;rotate(deg)&#8221;;<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transform:skew<\/td>\n<td>elemmnt.style.webkitTransform = &#8220;skew(deg)&#8221;;<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transform-origin<\/td>\n<td>elemmnt.style.webkitTransformOrigin<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transform-style<\/td>\n<td>elemmnt.style.webkitTransformStyle<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transition-property<\/td>\n<td>elemmnt.style.webkitTransformProperty<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transition-duration<\/td>\n<td>elemmnt.style.webkitTransitionDuration<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transition-timing-function<\/td>\n<td>elemmnt.style.webkitTransitionTimingFunction<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> transition-delay<\/td>\n<td>elemmnt.style.webkitTransitionDelay<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> animation-name<\/td>\n<td>elemmnt.style.webkitAnimationName<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> animation-duration<\/td>\n<td>elemmnt.style.webkitAnimationDuration<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> animation-timing-function<\/td>\n<td>elemmnt.style.webkitAnimationTimingFunction<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> animation-iteration-count<\/td>\n<td>elemmnt.style.webkitAnimationIterationCount<\/td>\n<\/tr>\n<tr>\n<td>animation-direction<\/td>\n<td>elemmnt.style.webkitAnimationDirection<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> animation-play-state<\/td>\n<td>elemmnt.style.webkitAnimationPlayState<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> animation-delay<\/td>\n<td>elemmnt.style.webkitAnimationDelay<\/td>\n<\/tr>\n<tr>\n<td>\n<p><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> background\u00a0linear-gradient<\/p>\n<\/td>\n<td>elemmnt.style.background = &#8220;-webkit-gradient(linear, ~~)&#8221;;<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> background\u00a0radial-gradient<\/td>\n<td>elemmnt.style.background = &#8220;-webkit-gradient(radial, ~~)&#8221;;<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> text-shadow<\/td>\n<td>elemmnt.style.textShadow<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> box-sizing<\/td>\n<td>elemmnt.style.webkitBoxSizing<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-radius<\/td>\n<td>elemmnt.style.webkitBorderRadius<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-top-left-radius<\/td>\n<td>elemmnt.style.webkitBorderTopLeftRadius<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-top-right-radius<\/td>\n<td>elemmnt.style.webkitBorderTopRightRadius<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-bottom-left-radius<\/td>\n<td>elemmnt.style.webkitBorderBottomLeftRadius<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-bottom-right-radius<\/td>\n<td>elemmnt.style.webkitBorderBottomRightRadius<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-image<\/td>\n<td>elemmnt.style.webkitBorderImage<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-image-source<\/td>\n<td>elemmnt.style.webkitBorderImageSource<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-image-slice<\/td>\n<td>elemmnt.style.webkitBorderImageSlice<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-image-width<\/td>\n<td>elemmnt.style.webkitBorderImageWidth<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-image-outset<\/td>\n<td>elemmnt.style.webkitBorderImageOutset<\/td>\n<\/tr>\n<tr>\n<td><!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?--> border-image-repeat<\/td>\n<td>elemmnt.style.webkitBorderImageRepeat<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript\u3092\u7528\u3044\u305fCSS\u306e\u30b9\u30bf\u30a4\u30eb\u5909\u66f4\u306f\u901a\u5e38\u3001 element.style.backgroundColor = &#8220;#ff00000&#8221;; \u306a\u3069\u306e\u3088\u3046\u306b element.style.attribute = valu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[73,171,59,167,177,168,176,47,179,50,46,120,119,69,96,111,178],"class_list":["post-3275","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-actiinscript2-0","tag-android","tag-android-sdk","tag-css","tag-css3","tag-html","tag-html5","tag-javascript-2","tag-jquery","tag-jquery-mobile","tag-js","tag-sass","tag-scss","tag-transform","tag-transition","tag-wordpress-2","tag-178"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/3275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3275"}],"version-history":[{"count":3,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/3275\/revisions"}],"predecessor-version":[{"id":3277,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/3275\/revisions\/3277"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}