{"id":863,"date":"2015-06-03T13:40:29","date_gmt":"2015-06-03T04:40:29","guid":{"rendered":"http:\/\/css.programming.jp\/?p=863"},"modified":"2019-02-26T07:24:24","modified_gmt":"2019-02-25T22:24:24","slug":"%e3%83%95%e3%82%a7%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%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%89%e3%82%b7%e3%83%a7%e3%83%bc%ef%bc%88%e3%83%ac%e3%82%b9%e3%83%9d","status":"publish","type":"post","link":"https:\/\/css.programming.jp\/?p=863","title":{"rendered":"\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"},"content":{"rendered":"<p>\u3000\u3053\u306e\u30b5\u30a4\u30c8\u306e\u95b2\u89a7\u8005\u306e\u65b9\u304b\u3089\u3001\u753b\u9762\u30b5\u30a4\u30ba\u306b\u5bfe\u5fdc\u3057\u3066\u753b\u50cf\u304c\u7e2e\u5c0f\u3059\u308b\u3001\u3044\u308f\u3086\u308b\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u578b\u306b\u3067\u304d\u306a\u3044\u3082\u306e\u304b\u3068\u306e\u8cea\u554f\u3092\u53d7\u3051\u307e\u3057\u305f\u3002\u78ba\u304b\u306b\u6700\u8fd1\u3067\u306f\u30b9\u30de\u30db\u5bfe\u5fdc\u306b\u3057\u306a\u3044\u3053\u3068\u306b\u306f\u3001\u4e00\u4eba\u524d\u306b\u3042\u3089\u305a\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u304b\u3089\u3001\u4ee5\u524d\u306b\u6295\u7a3f\u3057\u305f\u300c\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u578b\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u300d\u3092\u4f8b\u306b\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h4>\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<p>\u3000\u3000\u3000<\/p>\n<div style=\"padding:28%;\"><\/div>\n<\/div>\n<style type=\"text\/css\">\n#stage {\nposition: relative;\nmax-width:600px;\nmargin: 0 auto;\n}\n.pic {\nposition: absolute;\n}\n.pic img {\nwidth: 100%;\nheight: auto;\nopacity:0;\n-moz-animation: imgTrans 40s infinite;\n-webkit-animation: imgTrans 40s ease-in infinite;\nanimation: imgTrans 40s infinite;\n}\n#photo1 img {\n-moz-animation-delay: 0s;\n-webkit-animation-delay: 0s;\nanimation-delay: 0s;\n}\n#photo2 img {\n-moz-animation-delay: 8s;\n-webkit-animation-delay: 8s;\nanimation-delay: 8s;\n}\n#photo3 img {\n-moz-animation-delay: 16s;\n-webkit-animation-delay: 16s;\nanimation-delay: 16s;\n}\n#photo4 img{\n-moz-animation-delay: 24s;\n-webkit-animation-delay: 24s;\nanimation-delay: 24s;\n}\n#photo5 img {\n-moz-animation-delay: 32s;\n-webkit-animation-delay: 32s;\nanimation-delay: 32s;\n}\n#frame {\nwidth: 100%;\nposition: relative;\noverflow: hidden;\n}\n@-webkit-keyframes imgTrans {\n0% { opacity:0; }\n7% { opacity:1; }\n18% { opacity:1; }\n25% { opacity:0; }\n100% { opacity:0; }\n}\n@-moz-keyframes imgTrans {\n0% { opacity:0; }\n7% { opacity:1; }\n18% { opacity:1; }\n25% { opacity:0; }\n100% { opacity:0; }\n}\n@keyframes imgTrans {\n0% { opacity:0; }\n7% { opacity:1; }\n18% { opacity:1; }\n25% { opacity:0; }\n100% { opacity:0; }\n}\n<\/style>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528HTML<\/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;wp-images\/1.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo2&quot; class=&quot;pic&quot;&gt;&lt;img src=&quot;wp-images\/2.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo3&quot; class=&quot;pic&quot;&gt;&lt;img src=&quot;wp-images\/3.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo4&quot; class=&quot;pic&quot;&gt;&lt;img src=&quot;wp-images\/4.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo5&quot; class=&quot;pic&quot;&gt;&lt;img src=&quot;wp-images\/5.jpg&quot;&gt;&lt;\/div&gt;\r\n\u3000\u3000\u3000&lt;div style=&quot;padding:28%;&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\u3053\u306e\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u306e\u4e0b\u306b\u4f55\u304b\u8a18\u8ff0\u3068\u304b\u3001\u4ed6\u306e\u8981\u7d20\u3092\u52a0\u3048\u305f\u3044\u5834\u5408\u306b\u306f\u3001\u753b\u50cf\u306bposition:absolute\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3068\u3001\u4e0b\u306e\u8981\u7d20\u304c\u91cd\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u3000\u305d\u3053\u3067\u3001\u4e0b\u306e\u8981\u7d20\u304c\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u753b\u50cf\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3001&lt;div style=&#8221;padding:28%;&#8221;&gt;&lt;\/div&gt;\u3092\u753b\u50cf\u30bf\u30b0\u306e\u4e0b\u306b\u633f\u5165\u3057\u307e\u3059\u300228%\u306f\u3001\u753b\u50cf\u306e\u7e26\/\u6a2a\u6bd4\u306e1\/2\u304b\u3089\u6c7a\u3081\u305f\u5024\u3067\u3059\u3002\u753b\u50cf\u30b5\u30a4\u30ba\u306b\u3088\u3063\u3066\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528CSS<\/h4>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n#stage {\r\nposition: relative;\r\nmax-width:600px;\r\nmargin: 0 auto;\r\nbackground:#ddd;\r\n}\r\n.pic {\r\nposition: absolute;\r\n}\r\n.pic img {\r\nwidth: 100%;\r\nheight: auto;\r\nopacity:0;\r\n-moz-animation: imgTrans 40s infinite;\r\n-webkit-animation: imgTrans 40s ease-in infinite;\r\nanimation: imgTrans 40s infinite;\r\n}\r\n#photo1 img {\r\n-moz-animation-delay: 0s;\r\n-webkit-animation-delay: 0s;\r\nanimation-delay: 0s;\r\n}\r\n#photo2 img {\r\n-moz-animation-delay: 8s;\r\n-webkit-animation-delay: 8s;\r\nanimation-delay: 8s;\r\n}\r\n#photo3 img {\r\n-moz-animation-delay: 16s;\r\n-webkit-animation-delay: 16s;\r\nanimation-delay: 16s;\r\n}\r\n#photo4 img{\r\n-moz-animation-delay: 24s;\r\n-webkit-animation-delay: 24s;\r\nanimation-delay: 24s;\r\n}\r\n#photo5 img {\r\n-moz-animation-delay: 32s;\r\n-webkit-animation-delay: 32s;\r\nanimation-delay: 32s;\r\n}\r\n@-webkit-keyframes imgTrans {\r\n0% { opacity:0; }\r\n7% { opacity:1; }\r\n18% { opacity:1; }\r\n25% { opacity:0; }\r\n100% { opacity:0; }\r\n}\r\n@-moz-keyframes imgTrans {\r\n0% { opacity:0; }\r\n7% { opacity:1; }\r\n18% { opacity:1; }\r\n25% { opacity:0; }\r\n100% { opacity:0; }\r\n}\r\n@keyframes imgTrans {\r\n0% { opacity:0; }\r\n7% { opacity:1; }\r\n18% { opacity:1; }\r\n25% { opacity:0; }\r\n100% { opacity:0; }\r\n}\r\n<\/pre>\n<h4>CSS\u306e\u30dd\u30a4\u30f3\u30c8\u8aac\u660e<\/h4>\n<p>\u30fb\u300c\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u578b\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u300d\u3068\u306e\u9055\u3044\u306f\u3001\u4ee5\u4e0b\u3067\u3059\u3002<br \/>\n\u3000#stage \u306ewidth\u306e\u6307\u5b9a\u3092\u3001max-width: \u3068\u3057\u3066height\u306f\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u3002<br \/>\n\u3000img \u306ewidth\u6307\u5b9a\u3092100\uff05\u3001height\u6307\u5b9a\u3092auto \u3068\u3057\u3066\u3044\u308b\u3002<br \/>\n\u3000#frame\u306f\u524a\u9664\u3057\u3066\u3044\u308b\u3002<br \/>\n\u30fb\u753b\u50cf\u306b\u30ea\u30f3\u30af\u3092\u8cbc\u308a\u305f\u3044\u5834\u5408\u306f\u3001@keyframes \u306e7%\u306b\u3001<br \/>\n\u3000z-index:20; \u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3053\u306e\u30b5\u30a4\u30c8\u306e\u95b2\u89a7\u8005\u306e\u65b9\u304b\u3089\u3001\u753b\u9762\u30b5\u30a4\u30ba\u306b\u5bfe\u5fdc\u3057\u3066\u753b\u50cf\u304c\u7e2e\u5c0f\u3059\u308b\u3001\u3044\u308f\u3086\u308b\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u578b\u306b\u3067\u304d\u306a\u3044\u3082\u306e\u304b\u3068\u306e\u8cea\u554f\u3092\u53d7\u3051\u307e\u3057\u305f\u3002\u78ba\u304b\u306b\u6700\u8fd1\u3067\u306f\u30b9\u30de\u30db\u5bfe\u5fdc\u306b\u3057\u306a\u3044\u3053\u3068\u306b\u306f\u3001\u4e00\u4eba\u524d\u306b\u3042\u3089\u305a\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u304b\u3089\u3001\u4ee5\u524d\u306b\u6295\u7a3f\u3057\u305f\u300c\u30d5 &hellip; <a class=\"more-link\" href=\"https:\/\/css.programming.jp\/?p=863\">\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":[3],"tags":[],"class_list":["post-863","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/863","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=863"}],"version-history":[{"count":22,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/863\/revisions"}],"predecessor-version":[{"id":1409,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/863\/revisions\/1409"}],"wp:attachment":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}