{"id":26837,"date":"2025-03-17T10:24:57","date_gmt":"2025-03-17T01:24:57","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=26837"},"modified":"2025-03-17T10:29:43","modified_gmt":"2025-03-17T01:29:43","slug":"loop-animation-two-images","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/loop-animation-two-images\/","title":{"rendered":"WordPress\u2502\u30a8\u30d5\u30a7\u30af\u30c8\u7528\u306e\u753b\u50cf2\u679a\u3060\u3051\u3067\u30eb\u30fc\u30d7\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u30e1\u30a4\u30f3\u30d3\u30b8\u30e5\u30a2\u30eb\u306b\u52d5\u7684\u306a\u8981\u7d20\u3092\u3044\u308c\u308b\u3068\u30b5\u30a4\u30c8\u304c\u30ea\u30c3\u30c1\u306b\u898b\u3048\u308b\u306e\u3067\u3059\u304c\u3001<\/p>\n\n\n\n<p>\u52d5\u753b\u306b\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u8868\u793a\u304c\u91cd\u305f\u3044\u306e\u3068\u3001PC\u74b0\u5883\u3068\u52d5\u753b\u306e\u30b3\u30fc\u30c7\u30c3\u30af\u306b\u3088\u3063\u3066\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u3059\u306e\u3067SVG\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u753b\u50cf\u3092\u91cd\u306d\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u306e\u304c\u4e00\u756a\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u3067\u691c\u8a3c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-group alignfull fx-bg u-mb-ctrl u-mb-20 has-background\" style=\"background-color:#ebf3f7\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<!-- \u56de\u8ee2\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff1a#loop -->\n<div id=\"loop\" class=\"image\"><\/div>\n<!-- \u62e1\u5927\u7e2e\u5c0f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff1a#loop2 -->\n<div id=\"loop2\" class=\"image\"><\/div>\n<\/div><\/div>\n\n\n\n<p>\u305d\u306e\u5099\u5fd8\u9332\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a8\u30d5\u30a7\u30af\u30c8\u7528\u306e\u753b\u50cf2\u679a\u3060\u3051\u3067\u30eb\u30fc\u30d7\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u5b9f\u88c5\u65b9\u6cd5\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<p>HTML\u3068CSS\u3092\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u56de\u8ee2\u3068\u30b9\u30b1\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u753b\u50cf<\/h3>\n\n\n\n<p>\u4e0b\u5730\u7528\u306e\u753b\u50cf\u3068\u4e0a\u306b\u91cd\u306d\u308b\u7528\u306e\u753b\u50cf\u30922\u7a2e\u985e\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">HTML<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!-- \u56de\u8ee2\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff1a#loop --&gt;\n&lt;div id=&quot;loop&quot; class=&quot;fx-image&quot;&gt;&lt;\/div&gt;\n&lt;!-- \u62e1\u5927\u7e2e\u5c0f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff1a#loop2 --&gt;\n&lt;div id=&quot;loop2&quot; class=&quot;fx-image&quot;&gt;&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">CSS<\/h3>\n\n\n\n<p>\u753b\u50cf\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>   \/* \u753b\u50cf\u8981\u7d20\u306e\u30d9\u30fc\u30b9\u30b9\u30bf\u30a4\u30eb *\/\n    .fx-image {\n      position: absolute;\n      top: 50%;\n      left: 50%;\n      transform: translate(-50%, -50%);\n      width: 100%;\n      height: 100%;\n    }\n\n    \/* ---------------------------------\n       1\u679a\u76ee\uff08\u56de\u8ee2\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff09\n    ---------------------------------- *\/\n    #loop {\n      animation: rotate 80s linear infinite; \/* 80\u79d2\u30671\u56de\u8ee2 *\/\n      z-index: 1; \n    }\n    #loop::before {\n      content: &quot;&quot;;\n      position: absolute;\n      width: 100%;\n      height: 100%;\n      background-image: url(&quot;https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/fx_image_02.png&quot;);\n      background-position: center;\n      background-repeat: no-repeat;\n      background-size: contain;\n      opacity: 0.8;\n    }\n\n    @keyframes rotate {\n      0% {\n        transform: translate(-50%, -50%) rotate(0deg);\n      }\n      100% {\n        transform: translate(-50%, -50%) rotate(360deg);\n      }\n    }\n\n    \/* ---------------------------------\n       2\u679a\u76ee\uff08\u62e1\u5927\u7e2e\u5c0f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff09\n    ---------------------------------- *\/\n    #loop2 {\n      animation: scaleAnime 5s ease infinite alternate;\n      z-index: 2;\n    }\n    #loop2::before {\n      content: &quot;&quot;;\n      position: absolute;\n      width: 100%;\n      height: 100%;\n      background-image: url(&quot;https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/fx_image_01.png&quot;);\n      background-position: center;\n      background-repeat: no-repeat;\n      background-size: contain;\n      scale: 1.1;\n      opacity: 0.8;\n    }\n\n    @keyframes scaleAnime {\n      0% {\n        transform: translate(-50%, -50%) scale(0.9);\n      }\n      100% {\n        transform: translate(-50%, -50%) scale(1.0);\n      }\n    }<\/code><\/pre><\/div>\n\n\n\n<p>\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3042\u3068\u306f\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u30e1\u30a4\u30f3\u30d3\u30b8\u30e5\u30a2\u30eb\u306b\u52d5\u7684\u306a\u8981\u7d20\u3092\u3044\u308c\u308b\u3068\u30b5\u30a4\u30c8\u304c\u30ea\u30c3\u30c1\u306b\u898b\u3048\u308b\u306e\u3067\u3059\u304c\u3001 \u52d5\u753b\u306b\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u8868\u793a\u304c\u91cd\u305f\u3044\u306e\u3068\u3001PC\u74b0\u5883\u3068\u52d5\u753b\u306e\u30b3\u30fc\u30c7\u30c3\u30af\u306b\u3088\u3063\u3066\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u3067\u3059\u306e\u3067SVG\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3082\u3044\u3044\u306e\u3067\u3059\u304c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":26853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pochipp_cv_data":"","swell_btn_cv_data":"","footnotes":""},"categories":[91],"tags":[],"area":[],"class_list":["post-26837","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-customize"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/26837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=26837"}],"version-history":[{"count":12,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/26837\/revisions"}],"predecessor-version":[{"id":26855,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/26837\/revisions\/26855"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/26853"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=26837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=26837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=26837"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=26837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}