{"id":592,"date":"2014-08-22T19:55:42","date_gmt":"2014-08-22T10:55:42","guid":{"rendered":"http:\/\/css.programming.jp\/?p=592"},"modified":"2015-02-27T17:13:51","modified_gmt":"2015-02-27T08:13:51","slug":"%e3%83%96%e3%83%a9%e3%82%a4%e3%83%b3%e3%83%89%e9%96%8b%e9%96%89%e5%9e%8b%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%89%e3%82%b7%e3%83%a7%e3%83%bc","status":"publish","type":"post","link":"https:\/\/css.programming.jp\/?p=592","title":{"rendered":"\u30d6\u30e9\u30a4\u30f3\u30c9\u958b\u9589\u578b\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc"},"content":{"rendered":"<style type=\"text\/css\">\n#stage {\n\tposition: relative;\n\twidth: 600px;\n\theight:338;\n\tmargin: 0 auto;\n}\n.photo {\n\tposition: absolute;\n\twidth: 600px;\n\theight: 338px;\n}\n.photo img {\n        visibility:hidden;\n\t-webkit-animation: imgtrans 30s infinite;\n\tanimation: imgtrans 30s infinite;\n}\n#photo1 img {\n\t-webkit-animation-delay: 0s;\n\tanimation-delay: 0s;\n}\n#photo2 img {\n\t-webkit-animation-delay: 6s;\n\tanimation-delay: 6s;\n}\n#photo3 img {\n\t-webkit-animation-delay: 12s;\n\tanimation-delay: 12s;\n}\n#photo4 img{\n\t-webkit-animation-delay: 18s;\n\tanimation-delay: 18s;\n}\n#photo5 img {\n\t-webkit-animation-delay: 24s;\n\tanimation-delay: 24s;\n}\n#frame {\n\twidth: 600px;\n\theight: 338px;\n\tposition: relative;\n\toverflow: hidden;\n}\n.rec {\n\twidth:60px;height:338px;\n\tbackground:#fff;\n\tposition:absolute;\n\ttop:21px;\n\topacity:0;\n\t-webkit-animation: sliceaction 6s infinite;\n\tanimation: sliceaction 6s infinite;\n}\n#rec1 { left:0;\n\t-webkit-animation-delay: -0.4s;\n\tanimation-delay: -0.4s;}\n#rec2 { left:60px;\n\t-webkit-animation-delay: -0.3s;\n\tanimation-delay: -0.3s;}\n#rec3 { left:120px;\n\t-webkit-animation-delay: -0.2s;\n\tanimation-delay: -0.2s;}\n#rec4 { left:180px;\n\t-webkit-animation-delay: -0.1s;\n\tanimation-delay: -0.1s;}\n#rec5 { left:240px;\n\t-webkit-animation-delay: 0s;\n\tanimation-delay: 0s;}\n#rec6 { left:300px;\n\t-webkit-animation-delay: 0.1s;\n\tanimation-delay: 0.1s;}\n#rec7 { left:360px;\n\t-webkit-animation-delay: 0.2s;\n\tanimation-delay: 0.2s;}\n#rec8 { left:420px;\n\t-webkit-animation-delay: 0.3s;\n\tanimation-delay: 0.3s;}\n#rec9 { left:480px;\n\t-webkit-animation-delay: 0.4s;\n\tanimation-delay: 0.4s;}\n#rec10 { left:540px;\n\t-webkit-animation-delay: 0.5s;\n\tanimation-delay: 0.5s;}\n@-webkit-keyframes imgtrans {\n       0% { visibility:visible; }\n       20% { visibility:hidden; } \n       100% { visibility:hidden;  }\n}\n@-webkit-keyframes sliceaction {\n\t0% { opacity:1;}\n\t5% { opacity:1;}\n\t20% { opacity:0;}\n\t80% { opacity:0;}\n\t95% { opacity:1;}\n\t100% { opacity:1;}\n}\n@keyframes imgtrans {\n       0% { visibility:visible; }\n       20% { visibility:hidden; } \n       100% { visibility:hidden; }\n}\n@keyframes sliceaction {\n\t0% { opacity:1;}\n\t5% { opacity:1;}\n\t20% { opacity:0;}\n\t80% { opacity:0;}\n\t95% { opacity:1;}\n\t100% { opacity:1;}\n}\n<\/style>\n<p>\u753b\u50cf\u304c\u6a2a\u306b\uff11\uff10\u5206\u5272\u3055\u308c\u308b\u5927\u304d\u3055\u306e\u77e9\u5f62\u304c\u9806\u6b21FadeIn\u3057\u3066\u753b\u9762\u3092\u8986\u3063\u3066\u9589\u3058\u3001\u6b21\u3044\u3067\u9806\u6b21FadeOut\u3057\u3066\u6b21\u306e\u753b\u9762\u3092\u958b\u3051\u308b\u30bf\u30a4\u30d7\u306e\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3067\u3001\u30d6\u30e9\u30a4\u30f3\u30c9\u304c\u958b\u9589\u3059\u308b\u3088\u3046\u306a\u30bf\u30c3\u30c1\u3092\u51fa\u3057\u305f\u3064\u3082\u308a\u3067\u3042\u308b\u3002<\/p>\n<h4>\u30b5\u30f3\u30d7\u30eb<\/h4>\n<div id=\"stage\">\n\u3000\u3000<\/p>\n<div id=\"frame\">\n<div id=\"photo1\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/1.jpg\"><\/div>\n<div id=\"photo2\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/2.jpg\"><\/div>\n<div id=\"photo3\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/3.jpg\"><\/div>\n<div id=\"photo4\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/4.jpg\"><\/div>\n<div id=\"photo5\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/5.jpg\"><\/div>\n<\/p><\/div>\n<div id=\"rec1\" class=\"rec\"><\/div>\n<div id=\"rec2\" class=\"rec\"><\/div>\n<div id=\"rec3\" class=\"rec\"><\/div>\n<div id=\"rec4\" class=\"rec\"><\/div>\n<div id=\"rec5\" class=\"rec\"><\/div>\n<div id=\"rec6\" class=\"rec\"><\/div>\n<div id=\"rec7\" class=\"rec\"><\/div>\n<div id=\"rec8\" class=\"rec\"><\/div>\n<div id=\"rec9\" class=\"rec\"><\/div>\n<div id=\"rec10\" class=\"rec\"><\/div>\n<\/div>\n<p><!-- html,css \u3053\u3053\u307e\u3067 --><\/p>\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;frame&quot;&gt;\r\n      &lt;div id=&quot;photo1&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;img2\/1.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo2&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;img2\/2.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo3&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;img2\/3.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo4&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;img2\/4.jpg&quot;&gt;&lt;\/div&gt;\r\n      &lt;div id=&quot;photo5&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;img2\/5.jpg&quot;&gt;&lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n    &lt;div id=&quot;rec1&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;rec2&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;rec3&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;rec4&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;rec5&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;rec6&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;rec7&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;rec8&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;rec9&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;rec10&quot; class=&quot;rec&quot;&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h4>HTML\u6982\u8981\u8aac\u660e<\/h4>\n<p>\u30fb\u8868\u793a\u7528\u5199\u771f\u3092#frame\u5185\u306b\u3059\u3079\u3066\u8868\u793a\u3055\u305b\u308b\u3002<br \/>\n\u3000\uff08css\u3067\u5168\u3066\u753b\u9762\u4e2d\u592e\u306b\u91cd\u306d\u3066\u8868\u793a\u3055\u305b\u3001\u521d\u671f\u306f\u5168\u3066\u975e\u8868\u793a\u306b\u3059\u308b\uff09<br \/>\n\u30fb\u77ed\u518a\u5f62\u77e9\u5f62\uff11\uff10\u679a\u3092\u3001\u6a2a\u306b\u4e26\u3079\u3066\u753b\u9762\u3092\u8986\u3046\u3088\u3046\u306b\u3057\u3001opacity\u30920\u306b\u3057\u3066\u900f\u660e\u306b\u3057\u3066\u304a\u304f\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\n\tposition: relative;\r\n\twidth: 600px;\r\n\theight:338;\r\n\tmargin: 0 auto;\r\n}\r\n.photo {\r\n\tposition: absolute;\r\n\twidth: 600px;\r\n\theight: 338px;\r\n}\r\n.photo img {\r\n        visibility:hidden;\r\n\t-webkit-animation: imgTrans 30s infinite;\r\n\tanimation: imgTrans 30s infinite;\r\n}\r\n#photo1 img {\r\n\t-webkit-animation-delay: 0s;\r\n\tanimation-delay: 0s;\r\n}\r\n#photo2 img {\r\n        -webkit-animation-delay: 6s;\r\n\tanimation-delay: 6s;\r\n}\r\n#photo3 img {\r\n\t-webkit-animation-delay: 12s;\r\n\tanimation-delay: 12s;\r\n}\r\n#photo4 img{\r\n\t-webkit-animation-delay: 18s;\r\n\tanimation-delay: 18s;\r\n}\r\n#photo5 img {\r\n\t-webkit-animation-delay: 24s;\r\n\tanimation-delay: 24s;\r\n}\r\n#frame {\r\n\twidth: 600px;\r\n\theight: 338px;\r\n\tposition: relative;\r\n\toverflow: hidden;\r\n}\r\n.rec {\r\n\twidth:60px;height:338px;background:#fff;\r\n\tposition:absolute;\r\n\ttop:0;\r\n\topacity:0;\r\n\t-webkit-animation: sliceaction 6s infinite;\r\n\tanimation: sliceaction 6s infinite;\r\n}\r\n#rec1 { left:0;\r\n\t-webkit-animation-delay: -0.4s;\r\n\tanimation-delay: -0.4s;}\r\n#rec2 { left:60px;\r\n\t-webkit-animation-delay: -0.3s;\r\n\tanimation-delay: -0.3s;}\r\n#rec3 { left:120px;\r\n\t-webkit-animation-delay: -0.2s;\r\n\tanimation-delay: -0.2s;}\r\n#rec4 { left:180px;\r\n\t-webkit-animation-delay: -0.1s;\r\n\tanimation-delay: -0.1s;}\r\n#rec5 { left:240px;\r\n\t-webkit-animation-delay: 0s;\r\n\tanimation-delay: 0s;}\r\n#rec6 { left:300px;\r\n\t-webkit-animation-delay: 0.1s;\r\n\tanimation-delay: 0.1s;}\r\n#rec7 { left:360px;\r\n\t-webkit-animation-delay: 0.2s;\r\n\tanimation-delay: 0.2s;}\r\n#rec8 { left:420px;\r\n\t-webkit-animation-delay: 0.3s;\r\n\tanimation-delay: 0.3s;}\r\n#rec9 { left:480px;\r\n\t-webkit-animation-delay: 0.4s;\r\n\tanimation-delay: 0.4s;}\r\n#rec10 { left:540px;\r\n\t-webkit-animation-delay: 0.5s;\r\n\tanimation-delay: 0.5s;}\r\n@-webkit-keyframes imgTrans {\r\n \t0% { visibility:visible;}\r\n \t20% { visibility:hidden;} \r\n \t100% { visibility:hidden;}\r\n}\r\n@-webkit-keyframes sliceaction {\r\n\t0% { opacity:1;}\r\n\t5% { opacity:1;}\r\n\t20% { opacity:0;}\r\n\t80% { opacity:0;}\r\n\t95% { opacity:1;}\r\n\t100% { opacity:1;}\r\n}\r\n@keyframes imgTrans {\r\n \t0% { visibility:visible;}\r\n \t20% { visibility:hidden;} \r\n \t100% { visibility:hidden;}\r\n}\r\n@keyframes sliceaction {\r\n\t0% { opacity:1;}\r\n\t5% { opacity:1;}\r\n\t20% { opacity:0;}\r\n\t80% { opacity:0;}\r\n\t95% { opacity:1;}\r\n\t100% { opacity:1;}\r\n}\r\n<\/pre>\n<h4>CSS\u306e\u30dd\u30a4\u30f3\u30c8\u8aac\u660e<\/h4>\n<p>\u30fb#stage \u304b\u3089 #frame \u307e\u3067\u306eCSS\u306f\u3001\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u578b\u3068\u540c\u3058\u3067\u3042\u308b\u304c\u3001animation(imgtrans) \u306f\u3001FadeIN OUT \u3092\u4f7f\u308f\u305a\u306b\u3001visibility \u3067\u8868\u793a\u3001\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002<br \/>\n\u30fb\u77ed\u518a\u77e9\u5f62\u306f\u3001\u30b9\u30e9\u30a4\u30c9\u5207\u66ff\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u306b\u5408\u308f\u305b\u3066\u30010.1\u79d2\u5dee\u3067\u9806\u6b21\u975e\u900f\u660e\u5316\u3055\u305b\u3066\u30b9\u30e9\u30a4\u30c9\u3092\u8986\u3044\u3001\u6b21\u3044\u3067\u3001\u540c\u3058\u304f0.1\u79d2\u5dee\u3067\u9806\u6b21\u900f\u660e\u5316\u3055\u305b\u3001\u6b21\u306e\u30b9\u30e9\u30a4\u30c9\u304c\u73fe\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002<br \/>\n\u3000\uff08\u77ed\u518a\u77e9\u5f62\u306e animation \u9593\u9694\u306f\u3001\u30b9\u30e9\u30a4\u30c9\u5207\u66ff\u9593\u9694\u306e6\u79d2\u306b\u5408\u308f\u305b\u308b\uff09<br \/>\n\u30fb\u6700\u521d\u306e\u77e9\u5f62\u306eanimation\u306e\u30b9\u30bf\u30fc\u30c8\u3092\u3001-0.4s\u306b\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u30b9\u30e9\u30a4\u30c9\u5207\u66ff\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3068\u77e9\u5f62\u306e\u958b\u9589\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u8abf\u6574\u3059\u308b\u305f\u3081\u3002<\/p>\n<div class=\"ninja_onebutton\">\n<script type=\"text\/javascript\">\n\/\/<![CDATA[\n(function(d){\nif(typeof(window.NINJA_CO_JP_ONETAG_BUTTON_63425606c23ff308dc3d676e4f432981)=='undefined'){\n    document.write(\"<sc\"+\"ript type='text\\\/javascript' src='http:\\\/\\\/omt.shinobi.jp\\\/b\\\/63425606c23ff308dc3d676e4f432981'><\\\/sc\"+\"ript>\");\n}else{\n    window.NINJA_CO_JP_ONETAG_BUTTON_63425606c23ff308dc3d676e4f432981.ONETAGButton_Load();}\n})(document);\n\/\/]]>\n<\/script><span class=\"ninja_onebutton_hidden\" style=\"display:none;\"><?php the_permalink(); ?><\/span><span style=\"display:none;\" class=\"ninja_onebutton_hidden\"><?php the_title(); ?><\/span>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u753b\u50cf\u304c\u6a2a\u306b\uff11\uff10\u5206\u5272\u3055\u308c\u308b\u5927\u304d\u3055\u306e\u77e9\u5f62\u304c\u9806\u6b21FadeIn\u3057\u3066\u753b\u9762\u3092\u8986\u3063\u3066\u9589\u3058\u3001\u6b21\u3044\u3067\u9806\u6b21FadeOut\u3057\u3066\u6b21\u306e\u753b\u9762\u3092\u958b\u3051\u308b\u30bf\u30a4\u30d7\u306e\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3067\u3001\u30d6\u30e9\u30a4\u30f3\u30c9\u304c\u958b\u9589\u3059\u308b\u3088\u3046\u306a\u30bf\u30c3\u30c1\u3092\u51fa\u3057\u305f\u3064\u3082\u308a\u3067\u3042\u308b\u3002 \u30b5\u30f3\u30d7\u30eb \u3000\u3000 \u672c &hellip; <a class=\"more-link\" href=\"https:\/\/css.programming.jp\/?p=592\">\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-592","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/592","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=592"}],"version-history":[{"count":20,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/592\/revisions"}],"predecessor-version":[{"id":799,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/592\/revisions\/799"}],"wp:attachment":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}