{"id":886,"date":"2015-06-05T08:17:46","date_gmt":"2015-06-04T23:17:46","guid":{"rendered":"http:\/\/css.programming.jp\/?p=886"},"modified":"2016-04-28T19:18:15","modified_gmt":"2016-04-28T10:18:15","slug":"%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%89%e3%82%a4%e3%83%b3%e3%83%bb%e3%82%a2%e3%82%a6%e3%83%88%e5%9e%8b%ef%bc%88%e3%83%ac%e3%82%b9%e3%83%9d%e3%83%b3%e3%82%b7%e3%83%96%ef%bc%89","status":"publish","type":"post","link":"https:\/\/css.programming.jp\/?p=886","title":{"rendered":"\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u578b\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\uff08\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\uff09"},"content":{"rendered":"<p>\u4ee5\u524d\u306b\u793a\u3057\u305f\u300c<a href=\"http:\/\/css.programming.jp\/?p=113\" target=\"_blank\">\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u578b<\/a>\u300d\u3092\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u306b\u3057\u305f\u3082\u306e\u3067\u3042\u308b\u3002<br \/>\n\u5148\u306e\u6295\u7a3f\u3001\u300c\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u578b\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\uff08\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\uff09\u300d\u306b\u7d9a\u304f\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u306e\u7b2c\u4e8c\u5f3e\u3067\u3042\u308b\u3002<\/p>\n<h4>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u578b\u306e\u30b5\u30f3\u30d7\u30eb<\/h4>\n<div id=\"stage\">\n<div id=\"photo1\" class=\"pic\"><img decoding=\"async\" src=\"wp-images\/1.jpg\"><\/div>\n<div id=\"photo2\" class=\"pic\"><img decoding=\"async\" src=\"wp-images\/2.jpg\"><\/div>\n<div id=\"photo3\" class=\"pic\"><img decoding=\"async\" src=\"wp-images\/3.jpg\"><\/div>\n<div id=\"photo4\" class=\"pic\"><img decoding=\"async\" src=\"wp-images\/4.jpg\"><\/div>\n<div id=\"photo5\" class=\"pic\"><img decoding=\"async\" src=\"wp-images\/5.jpg\"><\/div>\n<div style=\"padding:28%;background:transparent;\"><\/div>\n<\/div>\n<style type=\"text\/css\">\n#stage {\n\tposition: relative;\n\tmax-width: 600px;\n\tmargin: 0 auto;\n\toverflow: hidden;\n}\n.pic img {\n\tposition:absolute;\n\twidth: 100%;\n\ttop:0;\n\tleft:100%;\n\t-moz-animation: imgTrans 30s infinite;\n\t-webkit-animation: imgTrans 30s infinite;\n\tanimation: imgTrans 30s infinite;\n}\n#photo1 img {\n\t-moz-animation-delay: 0s;\n\t-webkit-animation-delay: 0s;\n\tanimation-delay: 0s;\n}\n#photo2 img {\n\t-moz-animation-delay: 6s;\n\t-webkit-animation-delay: 6s;\n\tanimation-delay: 6s;\n}\n#photo3 img {\n\t-moz-animation-delay: 12s;\n\t-webkit-animation-delay: 12s;\n\tanimation-delay: 12s;\n}\n#photo4 img {\n\t-moz-animation-delay: 18s;\n\t-webkit-animation-delay: 18s;\n\tanimation-delay: 18s;\n}\n#photo5 img {\n\t-moz-animation-delay: 24s;\n\t-webkit-animation-delay: 24s;\n\tanimation-delay: 24s;\n}\n@-webkit-keyframes imgTrans {\n 0% { left:100%; }\n 5% { left:0%; }\n 20% { left:0%; }\n 25% { left:-100%; }\n 100% { left:-100%; }\n}\n@-moz-keyframes imgTrans {\n 0% { left:100%; }\n 5% { left:0%; }\n 20% { left:0%; }\n 25% { left:-100%; }\n 40% { left:-100%; }\n 100% { left:-100%; }\n}\n@keyframes imgTrans {\n 0% { left:100%; }\n 5% { left:0%; }\n 20% { left:0%; }\n 25% { left:-100%; }\n 100% { left:-100%; }\n}\n<\/style>\n<p><\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528\uff28\uff34\uff2d\uff2c<\/h4>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;div id=&quot;stage&quot;&gt;\r\n      &lt;div id=&quot;photo1&quot; class=&quot;pic&quot;&gt;&lt;img src=&quot;img2\/1.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo2&quot; class=&quot;pic&quot;&gt;&lt;img src=&quot;img2\/2.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo3&quot; class=&quot;pic&quot;&gt;&lt;img src=&quot;img2\/3.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo4&quot; class=&quot;pic&quot;&gt;&lt;img src=&quot;img2\/4.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo5&quot; class=&quot;pic&quot;&gt;&lt;img src=&quot;img2\/5.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div style=&quot;padding:28%;background:transparent;&quot;&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h4>HTML\u306e\u30dd\u30a4\u30f3\u30c8\u8aac\u660e<\/h4>\n<p>\u30fb&lt;div style=&#8221;padding:28%;&#8221;&gt;&lt;\/div&gt; \u306f\u3001\u753b\u50cf\u8868\u793a\u57df\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u8a2d\u7f6e\u305f\u3082\u306e\u3067\u3001css \u306e overflow:hidden; \u306e\u5bfe\u8c61\u9818\u57df\u3068\u3082\u3044\u3048\u308b\u3002<br \/>\n\u300028\uff05\u306f\u3001\u753b\u50cf\u306e\u9ad8\u3055\/\u5e45\/2 \u3067\u8a08\u7b97\u3057\u305f\u3082\u306e\u3067\u3001\u753b\u50cf\u30b5\u30a4\u30ba\u306b\u3088\u3063\u3066\u8abf\u6574\u304c\u5fc5\u8981\u3067\u3042\u308b\u3002<br \/>\n\u3000transparent\u306f\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3092\u7f6e\u304f\u5834\u6240\u306b\u3088\u3063\u3066\u5fc5\u8981\u3068\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u3002<\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528\uff23\uff33\uff33<\/h4>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n#stage {\r\n\tposition: relative;\r\n\tmax-width: 600px;\r\n\tmargin: 0 auto;\r\n\toverflow: hidden;\r\n}\r\n.pic img {\r\n\tposition:absolute;\r\n\twidth: 100%;\r\n\ttop:0;\r\n\tleft:100%;\r\n\t-moz-animation: imgTrans 30s infinite;\r\n\t-webkit-animation: imgTrans 30s infinite;\r\n\tanimation: imgTrans 30s infinite;\r\n}\r\n#photo1 img {\r\n\t-moz-animation-delay: 0s;\r\n\t-webkit-animation-delay: 0s;\r\n\tanimation-delay: 0s;\r\n}\r\n#photo2 img {\r\n\t-moz-animation-delay: 6s;\r\n\t-webkit-animation-delay: 6s;\r\n\tanimation-delay: 6s;\r\n}\r\n#photo3 img {\r\n\t-moz-animation-delay: 12s;\r\n\t-webkit-animation-delay: 12s;\r\n\tanimation-delay: 12s;\r\n}\r\n#photo4 img {\r\n\t-moz-animation-delay: 18s;\r\n\t-webkit-animation-delay: 18s;\r\n\tanimation-delay: 18s;\r\n}\r\n#photo5 img {\r\n\t-moz-animation-delay: 24s;\r\n\t-webkit-animation-delay: 24s;\r\n\tanimation-delay: 24s;\r\n}\r\n@-webkit-keyframes imgTrans {\r\n 0% { left:100%; }\r\n 5% { left:0%; }\r\n 20% { left:0%; }\r\n 25% { left:-100%; }\r\n 100% { left:-100%; }\r\n}\r\n@-moz-keyframes imgTrans {\r\n 0% { left:100%; }\r\n 5% { left:0%; }\r\n 20% { left:0%; }\r\n 25% { left:-100%; }\r\n 100% { left:-100%; }\r\n}\r\n\r\n@keyframes imgTrans {\r\n 0% { left:100%; }\r\n 5% { left:0%; }\r\n 20% { left:0%; }\r\n 25% { left:-100%; }\r\n 100% { left:-100%; }\r\n}\r\n<\/pre>\n<h4>\uff23\uff33\uff33\u306e\u30dd\u30a4\u30f3\u30c8\u8aac\u660e<\/h4>\n<p>\u30fb#stage\u306ewidth\u6307\u5b9a\u3092\u3001max-width \u306b\u3059\u308b\u3002<br \/>\n\u30fb\u753b\u50cf\uff08img\uff09\u306ewidth\u3092100%\u3001\u521d\u671f\u914d\u7f6e\u3092left:100%;\u306b\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n\u30fbimg\u306banimation\u3092\u4ed8\u4e0e\u3059\u308b\u3002\uff08\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u975e\u5bfe\u5fdc\u578b\u306e\u5834\u5408\u306b\u914d\u7f6e\u3057\u305f#frame\u306f\u7701\u7565\u3057\u305f\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u306b\u793a\u3057\u305f\u300c\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u578b\u300d\u3092\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u306b\u3057\u305f\u3082\u306e\u3067\u3042\u308b\u3002 \u5148\u306e\u6295\u7a3f\u3001\u300c\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u578b\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\uff08\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\uff09\u300d\u306b\u7d9a\u304f\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u306e\u7b2c\u4e8c\u5f3e\u3067\u3042\u308b\u3002 \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u30b9\u30e9\u30a4\u30c9 &hellip; <a class=\"more-link\" href=\"https:\/\/css.programming.jp\/?p=886\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-886","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=886"}],"version-history":[{"count":15,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/886\/revisions"}],"predecessor-version":[{"id":1019,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/886\/revisions\/1019"}],"wp:attachment":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}