{"id":7803,"date":"2025-04-01T19:12:48","date_gmt":"2025-04-01T10:12:48","guid":{"rendered":"https:\/\/code-plus.jp\/gp\/?p=7803"},"modified":"2026-01-08T11:13:13","modified_gmt":"2026-01-08T02:13:13","slug":"swiper-autoplay-7803","status":"publish","type":"post","link":"https:\/\/code-plus.jp\/gp\/swiper-autoplay-7803\/","title":{"rendered":"Swiper\u306eautoplay\uff08\u81ea\u52d5\u518d\u751f\uff09\u304c\u6b62\u307e\u3089\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2 class=\"fz-xl mt-2r\">\u306f\u3058\u3081\u306b<\/h2>\r\n<p>Swiper\u306e\u81ea\u52d5\u518d\u751f\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u969b\u3001<code>disableOnInteraction: false<\/code>\u3092\u8a2d\u5b9a\u3057\u3066\u3082\u3001\u6642\u3005\u30b9\u30e9\u30a4\u30c9\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u554f\u984c\u306b\u906d\u9047\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u539f\u56e0\u3068\u89e3\u6c7a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\r\n<h2 class=\"fz-xl mt-2r\">\u554f\u984c\u306e\u539f\u56e0<\/h2>\r\n<p>Swiper\u306e\u81ea\u52d5\u518d\u751f\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u4e3b\u306a\u539f\u56e0\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\r\n<ol style=\"list-style-type:decimal;\">\r\n  <li>\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u3088\u308b\u5e72\u6e09<\/li>\r\n  <li>\u30de\u30a6\u30b9\u30db\u30d0\u30fc\u6642\u306e\u52d5\u4f5c<\/li>\r\n  <li>\u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3\u306e\u5b8c\u4e86\u5f85\u3061<\/li>\r\n  <li>\u30bf\u30c3\u30c1\u64cd\u4f5c\u306e\u5f71\u97ff<\/li>\r\n  <li>DOM\u306e\u5909\u66f4\u306b\u3088\u308b\u5f71\u97ff<\/li>\r\n<\/ol>\r\n<h2 class=\"fz-xl mt-2r\">\u89e3\u6c7a\u65b9\u6cd5<\/h2>\r\n<p>\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5b89\u5b9a\u3057\u305f\u81ea\u52d5\u518d\u751f\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\uff1a<\/p>\r\n<pre><code class=\"language-javascript\">var swiper = new Swiper(&#39;.swiper&#39;, {\r\n  autoplay: {\r\n    delay: 0,                    \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8: 3000\r\n    disableOnInteraction: false, \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8: true\r\n    pauseOnMouseEnter: false,    \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8: true\r\n    waitForTransition: true,     \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8: true\r\n    stopOnLastSlide: false,      \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8: false\r\n  },\r\n  allowTouchMove: false,         \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8: true\r\n  watchSlidesProgress: true,     \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8: false\r\n  observer: true,                \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8: false\r\n  observeParents: true,          \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8: false\r\n});\r\n<\/code><\/pre>\r\n<h2 class=\"fz-xl mt-2r\">\u5404\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8aac\u660e<\/h2>\r\n<h3 class=\"fz-lg mt-2r\">autoplay\u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\r\n<ul style=\"list-style-type:bullet;\">\r\n  <li>\r\n    <p><code>delay<\/code>: \u30b9\u30e9\u30a4\u30c9\u9593\u306e\u9045\u5ef6\u6642\u9593\uff08\u30df\u30ea\u79d2\uff09<\/p>\r\n    <ul style=\"list-style-type:bullet;\">\r\n      <li>0\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u30b9\u30e0\u30fc\u30ba\u306a\u9023\u7d9a\u518d\u751f\u304c\u53ef\u80fd<\/li>\r\n      <li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024: 3000<\/li>\r\n    <\/ul>\r\n  <\/li>\r\n  <li>\r\n    <p><code>disableOnInteraction<\/code>: \u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u6642\u306e\u81ea\u52d5\u518d\u751f\u505c\u6b62<\/p>\r\n    <ul style=\"list-style-type:bullet;\">\r\n      <li>false\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u5f8c\u3082\u81ea\u52d5\u518d\u751f\u3092\u7d99\u7d9a<\/li>\r\n      <li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024: true<\/li>\r\n    <\/ul>\r\n  <\/li>\r\n  <li>\r\n    <p><code>pauseOnMouseEnter<\/code>: \u30de\u30a6\u30b9\u30db\u30d0\u30fc\u6642\u306e\u52d5\u4f5c<\/p>\r\n    <ul style=\"list-style-type:bullet;\">\r\n      <li>false\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u30de\u30a6\u30b9\u30db\u30d0\u30fc\u6642\u3082\u81ea\u52d5\u518d\u751f\u3092\u7d99\u7d9a<\/li>\r\n      <li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024: true<\/li>\r\n    <\/ul>\r\n  <\/li>\r\n  <li>\r\n    <p><code>waitForTransition<\/code>: \u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3\u5b8c\u4e86\u5f85\u3061<\/p>\r\n    <ul style=\"list-style-type:bullet;\">\r\n      <li>true\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3\u5b8c\u4e86\u3092\u5f85\u3063\u3066\u304b\u3089\u6b21\u306e\u30b9\u30e9\u30a4\u30c9\u306b\u79fb\u52d5<\/li>\r\n      <li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024: true<\/li>\r\n    <\/ul>\r\n  <\/li>\r\n  <li>\r\n    <p><code>stopOnLastSlide<\/code>: \u6700\u7d42\u30b9\u30e9\u30a4\u30c9\u3067\u306e\u505c\u6b62<\/p>\r\n    <ul style=\"list-style-type:bullet;\">\r\n      <li>false\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u6700\u5f8c\u306e\u30b9\u30e9\u30a4\u30c9\u3067\u3082\u81ea\u52d5\u518d\u751f\u3092\u7d99\u7d9a<\/li>\r\n      <li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024: false<\/li>\r\n    <\/ul>\r\n  <\/li>\r\n<\/ul>\r\n<h3 class=\"fz-lg mt-2r\">\u305d\u306e\u4ed6\u306e\u91cd\u8981\u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\r\n<ul style=\"list-style-type:bullet;\">\r\n  <li>\r\n    <p><code>allowTouchMove<\/code>: \u30bf\u30c3\u30c1\u64cd\u4f5c\u306e\u6709\u52b9\/\u7121\u52b9<\/p>\r\n    <ul style=\"list-style-type:bullet;\">\r\n      <li>false\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u30bf\u30c3\u30c1\u64cd\u4f5c\u306b\u3088\u308b\u5e72\u6e09\u3092\u9632\u6b62<\/li>\r\n      <li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024: true<\/li>\r\n    <\/ul>\r\n  <\/li>\r\n  <li>\r\n    <p><code>watchSlidesProgress<\/code>: \u30b9\u30e9\u30a4\u30c9\u9032\u884c\u72b6\u6cc1\u306e\u76e3\u8996<\/p>\r\n    <ul style=\"list-style-type:bullet;\">\r\n      <li>true\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u30b9\u30e9\u30a4\u30c9\u306e\u9032\u884c\u72b6\u6cc1\u3092\u76e3\u8996\u3057\u3066\u5b89\u5b9a\u6027\u3092\u5411\u4e0a<\/li>\r\n      <li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024: false<\/li>\r\n    <\/ul>\r\n  <\/li>\r\n  <li>\r\n    <p><code>observer<\/code>: DOM\u5909\u66f4\u306e\u76e3\u8996<\/p>\r\n    <ul style=\"list-style-type:bullet;\">\r\n      <li>true\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001DOM\u306e\u5909\u66f4\u3092\u76e3\u8996\u3057\u3066\u5b89\u5b9a\u6027\u3092\u5411\u4e0a<\/li>\r\n      <li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024: false<\/li>\r\n    <\/ul>\r\n  <\/li>\r\n  <li>\r\n    <p><code>observeParents<\/code>: \u89aa\u8981\u7d20\u306e\u5909\u66f4\u76e3\u8996<\/p>\r\n    <ul style=\"list-style-type:bullet;\">\r\n      <li>true\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u89aa\u8981\u7d20\u306e\u5909\u66f4\u3082\u76e3\u8996<\/li>\r\n      <li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024: false<\/li>\r\n    <\/ul>\r\n  <\/li>\r\n<\/ul>\r\n<h2 class=\"fz-xl mt-2r\">\u307e\u3068\u3081<\/h2>\r\n<p>Swiper\u306e\u81ea\u52d5\u518d\u751f\u3092\u5b89\u5b9a\u3055\u305b\u308b\u306b\u306f\u3001\u5358\u306b<code>disableOnInteraction: false<\/code>\u3092\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u8907\u6570\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u3088\u308b\u5e72\u6e09\u3092\u9632\u304e\u3001\u30b9\u30e9\u30a4\u30c9\u306e\u9032\u884c\u72b6\u6cc1\u3092\u9069\u5207\u306b\u76e3\u8996\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5b89\u5b9a\u3057\u305f\u81ea\u52d5\u518d\u751f\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<p>\u3053\u308c\u3089\u306e\u8a2d\u5b9a\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u52b9\u679c\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\uff1a<\/p>\r\n<ul style=\"list-style-type:bullet;\">\r\n  <li>\u3088\u308a\u5b89\u5b9a\u3057\u305f\u81ea\u52d5\u518d\u751f<\/li>\r\n  <li>\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u3088\u308b\u5e72\u6e09\u306e\u9632\u6b62<\/li>\r\n  <li>\u30b9\u30e0\u30fc\u30ba\u306a\u9023\u7d9a\u518d\u751f<\/li>\r\n  <li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a<\/li>\r\n<\/ul>\r\n<p>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u3053\u308c\u3089\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3067\u3001\u6700\u9069\u306a\u52d5\u4f5c\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\r\n\r\n<a href=\"https:\/\/code-plus.jp\/gp\/swiper-autoplay-8857\/\" class=\"linkbox my-1.5r\">\r\n<h4 class=\"linkbox-title fz-md\">Swiper\u306e\u81ea\u52d5\u518d\u751f\u304c\u300c\u306a\u305c\u300d\u6b62\u307e\u308b\u306e\u304b\uff1f\u672c\u8cea\u304b\u3089\u7406\u89e3\u3059\u308b\u8a2d\u5b9a\u30ac\u30a4\u30c9<\/h4>\r\n<picture class=\"linkbox-thumbnail\">\r\n<img decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/a553ba19844a1c5ee477e1f1bd3e90da.jpg\" alt=\"Swiper\u306e\u81ea\u52d5\u518d\u751f\u304c\u300c\u306a\u305c\u300d\u6b62\u307e\u308b\u306e\u304b\uff1f\u672c\u8cea\u304b\u3089\u7406\u89e3\u3059\u308b\u8a2d\u5b9a\u30ac\u30a4\u30c9\" loading=\"lazy\" \/>\r\n<\/picture>\r\n<span class=\"linkbox-excerpt\">\u300cSwiper \u306e\u81ea\u52d5\u518d\u751f\u304c\u6b62\u307e\u308a\u307e\u3059...\u300d\u3068\u306e\u5831\u544a\u3092\u53d7\u3051\u307e\u3057\u305f\u3002\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u9593\u9055\u3044\u306a\u304f autoplay: true \u306f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u52d5\u4f5c\u78ba\u8a8d\u3092\u3059\u308b\u3068\u3001\u6700\u521d\u306f\u6b63\u5e38\u306b\u81ea\u52d5\u518d\u751f\u3055\u308c\u308b\u3082\u306e\u306e\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u5c11\u3057\u64cd\u4f5c\u3059\u308b\u3068\u6b62\u307e\u3063\u3066\u3057\u307e\u3044\u307e\u3059...\r\n&emsp;<u class=\"linkbox-more\">\u7d9a\u304d\u3092\u8aad\u3080<\/u>\r\n<\/span>\r\n<\/a>","protected":false},"excerpt":{"rendered":"\u306f\u3058\u3081\u306b Swiper\u306e\u81ea\u52d5\u518d\u751f\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u969b\u3001disableOnInteraction: false\u3092\u8a2d\u5b9a\u3057\u3066\u3082\u3001\u6642\u3005\u30b9\u30e9\u30a4\u30c9\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u554f\u984c\u306b\u906d\u9047\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u539f\u56e0\u3068\u89e3\u6c7a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac[...]","protected":false},"author":1,"featured_media":9543,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","footnotes":"","vk-ltc-link":"","vk-ltc-target":"0"},"categories":[12],"tags":[384,359,358,284,177,113],"group":[],"class_list":["post-7803","post","type-post","status-publish","format-standard","has-post-thumbnail","category-javascript","tag-autoplay","tag-359","tag-358","tag-swiper","tag-177","tag-javascript"],"acf":[],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/7803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/comments?post=7803"}],"version-history":[{"count":0,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/7803\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media\/9543"}],"wp:attachment":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media?parent=7803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/categories?post=7803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/tags?post=7803"},{"taxonomy":"group","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/group?post=7803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}