{"id":465,"date":"2014-03-30T14:16:34","date_gmt":"2014-03-30T05:16:34","guid":{"rendered":"http:\/\/css.programming.jp\/?p=465"},"modified":"2015-02-27T17:25:25","modified_gmt":"2015-02-27T08:25:25","slug":"%e7%b8%ae%e5%b0%8f%e6%8b%a1%e5%a4%a7%e5%9b%9e%e8%bb%a2%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=465","title":{"rendered":"\u7e2e\u5c0f\u62e1\u5927\u56de\u8ee2\u578b\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc"},"content":{"rendered":"<p>\u8868\u793a\u5199\u771f\u304c\u3001\u56de\u8ee2\u3057\u306a\u304c\u3089\u7e2e\u5c0f\u30fb\u62e1\u5927\u3057\u3066\u5199\u771f\u3092\u5207\u308a\u66ff\u3048\u308b\u30bf\u30a4\u30d7\u306e\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3067\u3042\u308b\u3002<br \/>\n\u5404\u5199\u771f\u306e\u3001animation \u3092\u305a\u3089\u3057\u3066 play \u3055\u305b\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u5199\u771f\u306e\u5207\u308a\u66ff\u3048\u3092\u884c\u3046\u3002\u56de\u8ee2\u306f\u3001transform:rotate \u3092\u4f7f\u3046\u3002<\/p>\n<h4>\u30b5\u30f3\u30d7\u30eb<\/h4>\n<div id=\"stage\">\n<ul>\n\u3000\u3000<\/p>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f1.jpg\" width=\"300\" height=\"300\"><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f2.jpg\" width=\"300\" height=\"300\"><\/li>\n<p>\u3000\u3000<\/p>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f3.jpg\" width=\"300\" height=\"300\"><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f4.jpg\" width=\"300\" height=\"300\"><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f5.jpg\" width=\"300\" height=\"300\"><\/li>\n<\/ul>\n<\/div>\n<style type=\"text\/css\">\n\t#stage {\n\t\tposition:relative;\n\t\twidth:300px;height:300px;\n\t\tbackground:#000;\n\t\toverflow:hidden;\n\t}\n\t#stage ul {\n\t\tlist-style:none;\n\t}\n\t#stage li img {\n\t\tposition:absolute;\n\t\ttop:0px;\n\t\tleft:0px;\n\t\tborder-top:5px solid #ddd;\n\t\tborder-left:5px solid #ddd;\n\t\tborder-right:5px solid #555;\n\t\tborder-bottom:5px solid #555;\n\t\topacity:0;\n\t\t-webkit-transform-origin:50% 50%;\t\t\n\t\ttransform-origin:50% 50%;\n\t}\n\t#stage li:nth-child(1) img {\n\t\t-webkit-animation:selfrot 20s ease 0s infinite;\n\t\tanimation:selfrot 20s ease 0s infinite;\n\t}\n\t#stage li:nth-child(2) img {\n\t\t-webkit-animation:selfrot 20s ease 4s infinite;\n\t\tanimation:selfrot 20s ease 4s infinite;\n\t}\n\t#stage li:nth-child(3) img {\n\t\t-webkit-animation:selfrot 20s ease 8s infinite;\n\t\tanimation:selfrot 20s ease 8s infinite;\n\t}\n\t#stage li:nth-child(4) img {\n\t\t-webkit-animation:selfrot 20s ease 12s infinite;\n\t\tanimation:selfrot 20s ease 12s infinite;\n\t}\n\t#stage li:nth-child(5) img {\n\t\t-webkit-animation:selfrot 20s ease 16s infinite;\n\t\tanimation:selfrot 20s ease 16s infinite;\n\t}\n\t@-webkit-keyframes selfrot {\n\t\t0%  {-webkit-transform:rotate(-180deg) scale(0,0);opacity:1;}\n\t\t5%  {-webkit-transform:rotate(0deg) scale(1,1);}\n\t\t15% {-webkit-transform:rotate(0deg) scale(1,1);}\n\t\t20% {-webkit-transform:rotate(180deg) scale(0,0);}\n\t\t100%{-webkit-transform:rotate(180deg) scale(0,0);opacity:1;}\n\t}\n\t@keyframes selfrot {\n\t\t0%  {transform:rotate(-180deg) scale(0,0);opacity:1;}\n\t\t5%  {transform:rotate(0deg) scale(1,1);}\n\t\t15% {transform:rotate(0deg) scale(1,1);}\n\t\t20% {transform:rotate(180deg) scale(0,0);}\n\t\t100%{transform:rotate(180deg) scale(0,0);opacity:1;}\n\t}\n<\/style>\n<p><\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528HTML<\/h4>\n<pre>\r\n&lt;div id=\"stage\"&gt;\r\n  &lt;ul&gt;\r\n\u3000\u3000&lt;li&gt;&lt;img src=\"wp-images\/f1.jpg\" width=\"300\" height=\"300\"&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;img src=\"wp-images\/f2.jpg\" width=\"300\" height=\"300\"&gt;&lt;\/li&gt;\r\n\u3000\u3000&lt;li&gt;&lt;img src=\"wp-images\/f3.jpg\" width=\"300\" height=\"300\"&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;img src=\"wp-images\/f4.jpg\" width=\"300\" height=\"300\"&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;img src=\"wp-images\/f5.jpg\" width=\"300\" height=\"300\"&gt;&lt;\/li&gt;\r\n  &lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h4>HTML\u306e\u30dd\u30a4\u30f3\u30c8\u8aac\u660e<\/h4>\n<p>\u30fb\u8868\u793a\u5199\u771f\u3092\u3001li \u3067\u4e26\u3079\u305f\u3060\u3051\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u3067\u3042\u308b\u3002<\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528CSS<\/h4>\n<pre>\r\n\/* \u8868\u793a\u67a0 *\/\r\n#stage {\r\n\t\tposition:relative;\r\n\t\twidth:300px;height:300px;\r\n\t\tbackground:#000;\r\n\t\toverflow:hidden;\r\n\t}\r\n\t#stage ul {\r\n\t\tlist-style:none;\r\n\t}\r\n\/* \u8868\u793a\u5199\u771f\u306e\u8a2d\u5b9a *\/\r\n\t#stage li img {\r\n\t\tposition:absolute;\r\n\t\ttop:0px;\r\n\t\tleft:0px;\r\n\t\tborder-top:5px solid #ddd;\r\n\t\tborder-left:5px solid #ddd;\r\n\t\tborder-right:5px solid #555;\r\n\t\tborder-bottom:5px solid #555;\r\n\t\topacity:0;\r\n\t\t-webkit-transform-origin:50% 50%;\t\t\r\n\t\ttransform-origin:50% 50%;\r\n\t}\r\n\/* \u5404\u30b9\u30e9\u30a4\u30c9\u306eanimation\u8a2d\u5b9a\uff084\u79d2\u305a\u3064\u305a\u3089\u3057\u3066play\uff09*\/\r\n\t#stage li:nth-child(1) img {\r\n\t\t-webkit-animation:selfrot 20s ease 0s infinite;\r\n\t\tanimation:selfrot 20s ease 0s infinite;\r\n\t}\r\n\t#stage li:nth-child(2) img {\r\n\t\t-webkit-animation:selfrot 20s ease 4s infinite;\r\n\t\tanimation:selfrot 20s ease 4s infinite;\r\n\t}\r\n\t#stage li:nth-child(3) img {\r\n\t\t-webkit-animation:selfrot 20s ease 8s infinite;\r\n\t\tanimation:selfrot 20s ease 8s infinite;\r\n\t}\r\n\t#stage li:nth-child(4) img {\r\n\t\t-webkit-animation:selfrot 20s ease 12s infinite;\r\n\t\tanimation:selfrot 20s ease 12s infinite;\r\n\t}\r\n\t#stage li:nth-child(5) img {\r\n\t\t-webkit-animation:selfrot 20s ease 16s infinite;\r\n\t\tanimation:selfrot 20s ease 16s infinite;\r\n\t}\r\n\t@-webkit-keyframes selfrot {\r\n\t\t0%  {-webkit-transform:rotate(-180deg) scale(0,0);opacity:1;}\r\n\t\t5%  {-webkit-transform:rotate(0deg) scale(1,1);}\r\n\t\t15% {-webkit-transform:rotate(0deg) scale(1,1);}\r\n\t\t20% {-webkit-transform:rotate(180deg) scale(0,0);}\r\n\t\t100%{-webkit-transform:rotate(180deg) scale(0,0);opacity:1;}\r\n\t}\r\n\t@keyframes selfrot {\r\n\t\t0%  {transform:rotate(-180deg) scale(0,0);opacity:1;}\r\n\t\t5%  {transform:rotate(0deg) scale(1,1);}\r\n\t\t15% {transform:rotate(0deg) scale(1,1);}\r\n\t\t20% {transform:rotate(180deg) scale(0,0);}\r\n\t\t100%{transform:rotate(180deg) scale(0,0);opacity:1;}\r\n\t}\r\n<\/pre>\n<h4>CSS\u306e\u30dd\u30a4\u30f3\u30c8\u8aac\u660e<\/h4>\n<p>\u30fbtransform-origin:50% 50%; \u3067\u3001\u56de\u8ee2\u306e\u8d77\u70b9\u3092\u5199\u771f\u4e2d\u5fc3\u306b\u53d6\u308b\u3002<br \/>\n\u30fb#stage li:nth-child(1) img \u306f\u3001li \u306e\u4e00\u756a\u76ee\u306e\u9805\u76ee\uff08\u5199\u771f\uff09\u3002<br \/>\n\u30fbanimation:selfrot 20s ease 4s infinite;\u3000\u3067\u300120\u79d2\u9593\u9694\u306e\u30a2\u30cb\u30e1\u306e\u7e70\u308a\u8fd4\u3057\u3068\u30014\u79d2\u9045\u308c\u3067\u518d\u751f\u958b\u59cb\u3092\u8a2d\u5b9a\u3002<br \/>\n\u30fb\u5404\u30b9\u30e9\u30a4\u30c9\u306e\u8868\u793a\uff08\u62e1\u59271s\u30fb\u9759\u7f6e2s\u30fb\u7e2e\u5c0f1s\uff09\u9593\u9694\u30924\u79d2\u306b\u53d6\u308a\u3001\u3042\u3068\u306e16\u79d2\u306f\u7e2e\u5c0f\u3057\u305f\u307e\u307e\u5f85\u6a5f\u3055\u305b\u308b\u3002<br \/>\n\u3000\u3059\u306a\u308f\u3061\u30010-20%\u3067\u8868\u793a\u300120-100%\u3067\u5f85\u6a5f\u3068\u3059\u308b\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>\u8868\u793a\u5199\u771f\u304c\u3001\u56de\u8ee2\u3057\u306a\u304c\u3089\u7e2e\u5c0f\u30fb\u62e1\u5927\u3057\u3066\u5199\u771f\u3092\u5207\u308a\u66ff\u3048\u308b\u30bf\u30a4\u30d7\u306e\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3067\u3042\u308b\u3002 \u5404\u5199\u771f\u306e\u3001animation \u3092\u305a\u3089\u3057\u3066 play \u3055\u305b\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u5199\u771f\u306e\u5207\u308a\u66ff\u3048\u3092\u884c\u3046\u3002\u56de\u8ee2\u306f\u3001transform:rotate  &hellip; <a class=\"more-link\" href=\"https:\/\/css.programming.jp\/?p=465\">\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-465","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/465","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=465"}],"version-history":[{"count":13,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":806,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/465\/revisions\/806"}],"wp:attachment":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}