{"id":425,"date":"2014-03-17T14:40:17","date_gmt":"2014-03-17T05:40:17","guid":{"rendered":"http:\/\/css.programming.jp\/?p=425"},"modified":"2015-02-27T17:28:10","modified_gmt":"2015-02-27T08:28:10","slug":"3d-%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=425","title":{"rendered":"3D-\u56de\u8ee2\u578b\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc"},"content":{"rendered":"<p>CoverFlow \u578b\u3068\u540c\u69d8\u3001rotationY \u3068 perspective \u3092\u4f7f\u3063\u3066\u3001\u5965\u884c\u304d\u306e\u3042\u308b\u56de\u8ee2\u3067\u8907\u6570\u679a\u6570\u306e\u30b9\u30e9\u30a4\u30c9\u3092\u79fb\u52d5\u3055\u305b\u3001\u6b63\u9762\u306b\u6765\u305f\u30b9\u30e9\u30a4\u30c9\u3092\u9451\u8cde\u3059\u308b\u30bf\u30a4\u30d7\u306e\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3067\u3042\u308b\u3002100 \u3092\u30b9\u30e9\u30a4\u30c9\u679a\u6570\u3067\u5272\u3063\u305f\uff05\u3092\u9593\u9694\u3068\u3057\u305fanimation\u3092\u5272\u308a\u4ed8\u3051\u308b\u3068\u3001\u30b9\u30e9\u30a4\u30c9\u304c\u6574\u7136\u3068\u56de\u8ee2\u3059\u308b\u3002<\/p>\n<h4>\u30b5\u30f3\u30d7\u30eb<\/h4>\n<p><!-- \u3053\u3053\u304b\u3089HTML --><\/p>\n<div id=\"stage\">\n<div id=\"photo1\" class=\"photo\"><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f1.jpg\" width=\"200\" height=\"200\"><\/div>\n<div id=\"photo2\" class=\"photo\"><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f2.jpg\" width=\"200\" height=\"200\"><\/div>\n<div id=\"photo3\" class=\"photo\"><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f3.jpg\" width=\"200\" height=\"200\"><\/div>\n<div id=\"photo4\" class=\"photo\"><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f4.jpg\" width=\"200\" height=\"200\"><\/div>\n<div id=\"photo5\" class=\"photo\"><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f5.jpg\" width=\"200\" height=\"200\"><\/div>\n<div id=\"photo6\" class=\"photo\"><img loading=\"lazy\" decoding=\"async\" src=\"wp-images\/f6.jpg\" width=\"200\" height=\"200\"><\/div>\n<\/div>\n<p><!-- \u3053\u3053\u304b\u3089CSS --><\/p>\n<style type=\"text\/css\">\n\/* \u8868\u793a\u9818\u57df *\/\n#stage {\n\tposition:relative;\n\twidth: 600px;\n\theight: 400px;\n\tbackground: #333;\n\toverflow:hidden;\n}\n\/* \u30b9\u30e9\u30a4\u30c9\u5171\u901a *\/\n.photo {\n\tposition: absolute;\n\tleft: 200px;top:100px;\n\tborder:#fff 2px solid;\n}\n\/* \u5404\u30b9\u30e9\u30a4\u30c9\u306eanimation\u8a2d\u5b9a *\/\n#photo1 {\n\t-webkit-animation:slidepass 18s infinite;\n\t-webkit-animation-delay:-15s;\n\tanimation:slidepass 18s infinite;\n\tanimation-delay:-15s;\n}\n#photo2 {\n\t-webkit-animation:slidepass 18s infinite;\n\t-webkit-animation-delay:-12s;\n\tanimation:slidepass 18s infinite;\n\tanimation-delay:-12s;\n}\n#photo3 {\n\t-webkit-animation:slidepass 18s infinite;\n\t-webkit-animation-delay:-9s;\n\tanimation:slidepass 18s infinite;\n\tanimation-delay:-9s;\n}\n#photo4 {\n\t-webkit-animation:slidepass 18s infinite;\n\t-webkit-animation-delay:-6s;\n\tanimation:slidepass 18s infinite;\n\tanimation-delay:-6s;\n}\n#photo5 {\n\t-webkit-animation:slidepass 18s infinite;\n\t-webkit-animation-delay:-3s;\n\tanimation:slidepass 18s infinite;\n\tanimation-delay:-3s;\n}\n#photo6 {\n\t-webkit-animation:slidepass 18s infinite;\n\t-webkit-animation-delay:0s;\n\tanimation:slidepass 18s infinite;\n\tanimation-delay:0s;\n}\n\/* \u30b9\u30e9\u30a4\u30c9\u306e\u52d5\u304d\u30ef\u30f3\u30b5\u30a4\u30af\u30eb *\/\n@-webkit-keyframes slidepass {\n\t0% {-webkit-transform:perspective(750px) rotateY(0deg) translateZ(250px);z-index:20;}\n\t10% {-webkit-transform:perspective(1000px) rotateY(60deg) translateZ(250px);z-index:18;}\n\t16.7% {-webkit-transform:perspective(1000px) rotateY(60deg) translateZ(250px);z-index:18;}\n\t26.7% {-webkit-transform:perspective(1000px) rotateY(120deg) translateZ(250px);z-index:14;}\n\t33.3% {-webkit-transform:perspective(1000px) rotateY(120deg) translateZ(250px);z-index:14;}\n\t43.3% {-webkit-transform:perspective(1000px) rotateY(180deg) translateZ(250px);z-index:8;}\n\t50% {-webkit-transform:perspective(1000px) rotateY(180deg) translateZ(250px);z-index:8;}\n\t60% {-webkit-transform:perspective(1000px) rotateY(240deg) translateZ(250px);z-index:10;}\n\t66.7% {-webkit-transform:perspective(1000px) rotateY(240deg) translateZ(250px);z-index:10;}\n\t76.7% {-webkit-transform:perspective(1000px) rotateY(300deg) translateZ(250px);z-index:12;}\n\t83.4% {-webkit-transform:perspective(1000px) rotateY(300deg) translateZ(250px);z-index:12;}\n\t93.4% {-webkit-transform:perspective(750px) rotateY(360deg) translateZ(250px);z-index:16;}\n\t100% {-webkit-transform:perspective(750px) rotateY(360deg) translateZ(250px);z-index:16;}\n}\n@keyframes slidepass {\n\t0% {transform:perspective(750px) rotateY(0deg) translateZ(250px);z-index:20;}\n\t10% {transform:perspective(1000px) rotateY(60deg) translateZ(250px);z-index:18;}\n\t16.7% {transform:perspective(1000px) rotateY(60deg) translateZ(250px);z-index:18;}\n\t26.7% {transform:perspective(1000px) rotateY(120deg) translateZ(250px);z-index:14;}\n\t33.3% {transform:perspective(1000px) rotateY(120deg) translateZ(250px);z-index:14;}\n\t43.3% {transform:perspective(1000px) rotateY(180deg) translateZ(250px);z-index:8;}\n\t50% {transform:perspective(1000px) rotateY(180deg) translateZ(250px);z-index:8;}\n\t60% {transform:perspective(1000px) rotateY(240deg) translateZ(250px);z-index:10;}\n\t66.7% {transform:perspective(1000px) rotateY(240deg) translateZ(250px);z-index:10;}\n\t76.7% {transform:perspective(1000px) rotateY(300deg) translateZ(250px);z-index:12;}\n\t83.4% {transform:perspective(1000px) rotateY(300deg) translateZ(250px);z-index:12;}\n\t93.4% {transform:perspective(750px) rotateY(360deg) translateZ(250px);z-index:16;}\n\t100% {transform:perspective(750px) rotateY(360deg) translateZ(250px);z-index:16;}\n}\n<\/style>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528\u306eHTML<\/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;photo&quot;&gt;&lt;img src=&quot;wp-images\/f1.jpg&quot; width=&quot;200&quot; height=&quot;200&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;photo2&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;wp-images\/f2.jpg&quot; width=&quot;200&quot; height=&quot;200&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;photo3&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;wp-images\/f3.jpg&quot; width=&quot;200&quot; height=&quot;200&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;photo4&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;wp-images\/f4.jpg&quot; width=&quot;200&quot; height=&quot;200&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;photo5&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;wp-images\/f5.jpg&quot; width=&quot;200&quot; height=&quot;200&quot;&gt;&lt;\/div&gt;\r\n    &lt;div id=&quot;photo6&quot; class=&quot;photo&quot;&gt;&lt;img src=&quot;wp-images\/f6.jpg&quot; width=&quot;200&quot; height=&quot;200&quot;&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h4><\/h4>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528CSS<\/h4>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n\/* \u8868\u793a\u9818\u57df *\/\r\n#stage {\r\n\tposition:relative;\r\n\twidth: 600px;\r\n\theight: 400px;\r\n\tbackground: #333;\r\n\toverflow:hidden;\r\n}\r\n\/* \u30b9\u30e9\u30a4\u30c9\u5171\u901a *\/\r\n.photo {\r\n\tposition: absolute;\r\n\tleft: 200px;top:100px;\r\n\tborder:#fff 2px solid;\r\n}\r\n\/* \u5404\u30b9\u30e9\u30a4\u30c9\u306eanimation\u8a2d\u5b9a *\/\r\n#photo1 {\r\n\t-webkit-animation:slidepass 18s infinite;\r\n\t-webkit-animation-delay:-15s;\r\n\tanimation:slidepass 18s infinite;\r\n\tanimation-delay:-15s;\r\n}\r\n#photo2 {\r\n\t-webkit-animation:slidepass 18s infinite;\r\n\t-webkit-animation-delay:-12s;\r\n\tanimation:slidepass 18s infinite;\r\n\tanimation-delay:-12s;\r\n}\r\n#photo3 {\r\n\t-webkit-animation:slidepass 18s infinite;\r\n\t-webkit-animation-delay:-9s;\r\n\tanimation:slidepass 18s\u3000infinite;\r\n\tanimation-delay:-9s;\r\n}\r\n#photo4 {\r\n\t-webkit-animation:slidepass 18s infinite;\r\n\t-webkit-animation-delay:-6s;\r\n\tanimation:slidepass 18s infinite;\r\n\tanimation-delay:-6s;\r\n}\r\n#photo5 {\r\n\t-webkit-animation:slidepass 18s infinite;\r\n\t-webkit-animation-delay:-3s;\r\n\tanimation:slidepass 18s infinite;\r\n\tanimation-delay:-3s;\r\n}\r\n#photo6 {\r\n\t-webkit-animation:slidepass 18s infinite;\r\n\t-webkit-animation-delay:0s;\r\n\tanimation:slidepass 18s infinite;\r\n\tanimation-delay:0s;\r\n}\r\n\/* \u30b9\u30e9\u30a4\u30c9\u306e\u52d5\u304d\u30ef\u30f3\u30b5\u30a4\u30af\u30eb *\/\r\n@-webkit-keyframes slidepass {\r\n\t0% {-webkit-transform:perspective(750px) rotateY(0deg) translateZ(250px);z-index:20;}\r\n\t10% {-webkit-transform:perspective(1000px) rotateY(60deg) translateZ(250px);z-index:18;}\r\n\t16.7% {-webkit-transform:perspective(1000px) rotateY(60deg) translateZ(250px);z-index:18;}\r\n\t26.7% {-webkit-transform:perspective(1000px) rotateY(120deg) translateZ(250px);z-index:14;}\r\n\t33.3% {-webkit-transform:perspective(1000px) rotateY(120deg) translateZ(250px);z-index:14;}\r\n\t43.3% {-webkit-transform:perspective(1000px) rotateY(180deg) translateZ(250px);z-index:8;}\r\n\t50% {-webkit-transform:perspective(1000px) rotateY(180deg) translateZ(250px);z-index:8;}\r\n\t60% {-webkit-transform:perspective(1000px) rotateY(240deg) translateZ(250px);z-index:10;}\r\n\t66.7% {-webkit-transform:perspective(1000px) rotateY(240deg) translateZ(250px);z-index:10;}\r\n\t76.7% {-webkit-transform:perspective(1000px) rotateY(300deg) translateZ(250px);z-index:12;}\r\n\t83.4% {-webkit-transform:perspective(1000px) rotateY(300deg) translateZ(250px);z-index:12;}\r\n\t93.4% {-webkit-transform:perspective(750px) rotateY(360deg) translateZ(250px);z-index:16;}\r\n\t100% {-webkit-transform:perspective(750px) rotateY(360deg) translateZ(250px);z-index:16;}\r\n}\r\n@keyframes slidepass {\r\n\t0% {transform:perspective(750px) rotateY(0deg) translateZ(250px);z-index:20;}\r\n\t10% {transform:perspective(1000px) rotateY(60deg) translateZ(250px);z-index:18;}\r\n\t16.7% {transform:perspective(1000px) rotateY(60deg) translateZ(250px);z-index:18;}\r\n\t26.7% {transform:perspective(1000px) rotateY(120deg) translateZ(250px);z-index:14;}\r\n\t33.3% {transform:perspective(1000px) rotateY(120deg) translateZ(250px);z-index:14;}\r\n\t43.3% {transform:perspective(1000px) rotateY(180deg) translateZ(250px);z-index:8;}\r\n\t50% {transform:perspective(1000px) rotateY(180deg) translateZ(250px);z-index:8;}\r\n\t60% {transform:perspective(1000px) rotateY(240deg) translateZ(250px);z-index:10;}\r\n\t66.7% {transform:perspective(1000px) rotateY(240deg) translateZ(250px);z-index:10;}\r\n\t76.7% {transform:perspective(1000px) rotateY(300deg) translateZ(250px);z-index:12;}\r\n\t83.4% {transform:perspective(1000px) rotateY(300deg) translateZ(250px);z-index:12;}\r\n\t93.4% {transform:perspective(750px) rotateY(360deg) translateZ(250px);z-index:16;}\r\n\t100% {transform:perspective(750px) rotateY(360deg) translateZ(250px);z-index:16;}\r\n}\r\n<\/pre>\n<h4>CSS \u306e\u30b9\u30dd\u30c3\u30c8\u89e3\u8aac<\/h4>\n<p>\u30fb\u30b9\u30e9\u30a4\u30c9\u679a\u6570\u304c6\u679a\u306a\u306e\u3067\u3001\u753b\u9762\u4e2d\u592e\u3092\u4e2d\u5fc3\u3068\u3057\u3066\u300160\u00b0\u305a\u3064\u305a\u3089\u3057\u305f\u56de\u8ee2\u89d2\u3092 rotationY \u3067\u8a2d\u5b9a\u3059\u308b\u3068\u3001\uff16\u679a\u306e\u30b9\u30e9\u30a4\u30c9\u306e\u88cf\u9762\u304c\u4e2d\u5fc3\u3092\u5411\u3044\u3066\u5186\u5468\u4e0a\u306b\u4e26\u3076\u3002\u3053\u308c\u3092\u3001\u6c34\u5e73\u65b9\u5411\u306b\u56de\u8ee2\u3055\u305b\u308b\u3068\u3001\u9806\u756a\u306b\u30b9\u30e9\u30a4\u30c9\u304c\u3053\u3061\u3089\u3092\u5411\u3044\u3066\u767b\u5834\u3059\u308b\u3002<br \/>\n\u30fb\u30b9\u30e9\u30a4\u30c9\u306e\u4e2d\u5fc3\u304b\u3089\u306e\u8ddd\u96e2\u306f\u3001translateZ\u3067\u8a2d\u5b9a\u3059\u308b\u304c\u3001\u3053\u308c\u306f\u5168\u3066\u306e\u30b9\u30e9\u30a4\u30c9\u3067\u540c\u4e00\u5024\u306b\u306a\u308b\u3002<br \/>\n\u30fbanimation \u306e\u30ef\u30f3\u30b5\u30a4\u30af\u30eb\u306f\uff11\uff18\u79d2\u3002\uff13\u79d2\u9593\u9694\u3067\u30b9\u30e9\u30a4\u30c9\u3092\u79fb\u52d5\u3055\u305b\u308b\u304c\u3001\u79fb\u52d5\u3092\u901f\u304f\u3057\u9759\u6b62\u72b6\u614b\u3092\u4f5c\u308b\u3088\u3046\u306b\u8abf\u6574\u3057\u3066\u3044\u308b\u3002<br \/>\n\u30fb\u30b9\u30e9\u30a4\u30c9\u304c\u524d\u9762\u306b\u51fa\u3066\u304f\u308b\u3068\u304d\u306b\u3001perspective\u5024\u3092\u5c0f\u3055\u304f\u3057\u3066\uff08\u8996\u70b9\u3092\u8fd1\u3065\u3051\u3066\u30011000px -> 750px\uff09\u3001\u30b9\u30e9\u30a4\u30c9\u304c\u3084\u3084\u5927\u304d\u304f\u898b\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3044\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>CoverFlow \u578b\u3068\u540c\u69d8\u3001rotationY \u3068 perspective \u3092\u4f7f\u3063\u3066\u3001\u5965\u884c\u304d\u306e\u3042\u308b\u56de\u8ee2\u3067\u8907\u6570\u679a\u6570\u306e\u30b9\u30e9\u30a4\u30c9\u3092\u79fb\u52d5\u3055\u305b\u3001\u6b63\u9762\u306b\u6765\u305f\u30b9\u30e9\u30a4\u30c9\u3092\u9451\u8cde\u3059\u308b\u30bf\u30a4\u30d7\u306e\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3067\u3042\u308b\u3002100 \u3092\u30b9\u30e9\u30a4\u30c9\u679a\u6570\u3067\u5272 &hellip; <a class=\"more-link\" href=\"https:\/\/css.programming.jp\/?p=425\">\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-425","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/425","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=425"}],"version-history":[{"count":12,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/425\/revisions"}],"predecessor-version":[{"id":810,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/425\/revisions\/810"}],"wp:attachment":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}