{"id":1717,"date":"2019-05-21T19:01:32","date_gmt":"2019-05-21T10:01:32","guid":{"rendered":"http:\/\/4koma-web.com\/coding\/?p=1717"},"modified":"2019-05-21T19:01:32","modified_gmt":"2019-05-21T10:01:32","slug":"slick%e3%81%a7%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%80%e3%83%bc%e7%94%bb%e5%83%8f%e9%83%a8%e5%88%86%e3%81%a8%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%81%ae%e5%88%87%e3%82%8a%e9%9b%a2%e3%81%97","status":"publish","type":"post","link":"https:\/\/4koma-web.com\/coding\/slick%e3%81%a7%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%80%e3%83%bc%e7%94%bb%e5%83%8f%e9%83%a8%e5%88%86%e3%81%a8%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%81%ae%e5%88%87%e3%82%8a%e9%9b%a2%e3%81%97\/","title":{"rendered":"slick\u3067\u30b9\u30e9\u30a4\u30c0\u30fc\u753b\u50cf\u90e8\u5206\u3068\u30c6\u30ad\u30b9\u30c8\u306e\u5207\u308a\u96e2\u3057"},"content":{"rendered":"<p>slick\u3067\u30b9\u30e9\u30a4\u30c0\u30fc\u753b\u50cf\u90e8\u5206\u3068\u30c6\u30ad\u30b9\u30c8\u306e\u5207\u308a\u96e2\u3059\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u30b9\u30e9\u30a4\u30c0\u30fc\u90e8\u5206\u306f\u5358\u7d14\u306a\u753b\u50cf\u30b9\u30e9\u30a4\u30c9\u3067\u3001\u305d\u306e\u753b\u50cf\u306b\u5bfe\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u306a\u3069\u306f\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u3067\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u306a\u3069\u3001<br \/>\n\u8868\u793a\u306e\u3055\u305b\u65b9\u306f\u5225\u3005\u3067\u9023\u52d5\u3055\u305b\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>slickGoTo\u3067\u6307\u5b9a\u3057\u305f\u30b9\u30e9\u30a4\u30c9\u306e\u756a\u53f7\u306b\u98db\u3070\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u5229\u7528\u3057\u3066\u3001\u4f8b\u3048\u30703\u756a\u76ee\u306b\u98db\u3070\u3057\u305f\u3044\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\n$('.slider').slick('slickGoTo', 3);\r\n<\/pre>\n<p>\u305d\u3053\u3067\u9023\u52d5\u3055\u305b\u305f\u3044\u8981\u7d20\u306e\u6570\u3092\u300cvar index = $thumb.index(this);\u300d\u3067\u53d6\u5f97\u3057<br \/>\n\u524d\u306e\u8a18\u8ff0\u306e\u300c3\u300d\u306e\u3068\u3053\u308d\u306b\u300cindex\u300d\u3092\u5165\u308c\u3066\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n$('.slider').slick('slickGoTo', index);\r\n<\/pre>\n<p>\u25a0HTML<\/p>\n<pre>\r\n<div class=\"slide-inner\">\r\n            <div class=\"slider\">\r\n              <div class=\"slider_item\"><img decoding=\"async\" src=\"https:\/\/placehold.jp\/150x150.png\" width=\"200\" ><\/div>\r\n              <div class=\"slider_item\"><img decoding=\"async\" src=\"https:\/\/placehold.jp\/150x150.png\" width=\"200\" ><\/div>\r\n              <div class=\"slider_item\"><img decoding=\"async\" src=\"https:\/\/placehold.jp\/150x150.png\" width=\"200\" ><\/div>\r\n              <div class=\"slider_item\"><img decoding=\"async\" src=\"https:\/\/placehold.jp\/150x150.png\" width=\"200\" ><\/div>\r\n            <\/div>\r\n            <div class=\"profile-text\">\r\n              <div class=\"thumbnails_text current\">\u30c6\u30ad\u30b9\u30c8<\/div>\r\n              <div class=\"thumbnails_text\">\u30c6\u30ad\u30b9\u30c8<\/div>\r\n              <div class=\"thumbnails_text\">\u30c6\u30ad\u30b9\u30c8<\/div>\r\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000 <div class=\"thumbnails_text\">\u30c6\u30ad\u30b9\u30c8<\/div>\r\n            <\/div>\r\n            <div class=\"thumbnails\">\r\n              <div class=\"top\">\r\n                <div class=\"thumbnails_item current\"><img decoding=\"async\" src=\"https:\/\/placehold.jp\/150x150.png\" alt=\"\"><\/div>\r\n                <div class=\"thumbnails_item\"><img decoding=\"async\" src=\"https:\/\/placehold.jp\/150x150.png\" alt=\"\"><\/div>\r\n                <div class=\"thumbnails_item\"><img decoding=\"async\" src=\"https:\/\/placehold.jp\/150x150.png\" alt=\"\"><\/div>\r\n                <div class=\"thumbnails_item\"><img decoding=\"async\" src=\"https:\/\/placehold.jp\/150x150.png\" alt=\"\"><\/div>\r\n              <\/div>\r\n            <\/div>\r\n<\/pre>\n<p>\u25a0JS<\/p>\n<pre>\r\n$(function(){\r\n  var slider = function() {\r\n  var $slider = $('.slider');\r\n  if ($slider.length < 1) { return; }\r\n\r\n  var $text = $('.thumbnails_text');\r\n  var $thumb = $('.thumbnails_photo');\r\n\r\n  \/\/\u30aa\u30d7\u30b7\u30e7\u30f3\r\n  $slider.slick({\r\n    arrows: true,\r\n    fade:true,\r\n    speed: 800,\r\n  });\r\n\r\n  $thumb.on('click', function(e){\r\n    e.preventDefault();\r\n    var index = $thumb.index(this);\r\n    $slider.slick('slickGoTo', index);\r\n  });\r\n\r\n  $slider.on('beforeChange', function(event, slick, currentSlide, nextSlide){\r\n  \tvar currentClass = 'current';\r\n    $thumb.removeClass(currentClass)\r\n      .eq(nextSlide).addClass(currentClass);\r\n    $text.removeClass(currentClass)\r\n      .eq(nextSlide).addClass(currentClass);\r\n  });\r\n};\r\n\r\nslider();\r\n});\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>slick\u3067\u30b9\u30e9\u30a4\u30c0\u30fc\u753b\u50cf\u90e8\u5206\u3068\u30c6\u30ad\u30b9\u30c8\u306e\u5207\u308a\u96e2\u3059\u65b9\u6cd5\u3067\u3059\u3002 \u30b9\u30e9\u30a4\u30c0\u30fc\u90e8\u5206\u306f\u5358\u7d14\u306a\u753b\u50cf\u30b9\u30e9\u30a4\u30c9\u3067\u3001\u305d\u306e\u753b\u50cf\u306b\u5bfe\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u306a\u3069\u306f\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u3067\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u306a\u3069\u3001 \u8868\u793a\u306e\u3055\u305b\u65b9\u306f\u5225\u3005\u3067\u9023\u52d5\u3055\u305b\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u4f7f\u3048\u307e\u3059\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[1],"tags":[],"publishpress_future_action":{"enabled":false,"date":"2026-04-21 23:55:57","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category"},"_links":{"self":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/1717"}],"collection":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/comments?post=1717"}],"version-history":[{"count":0,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/1717\/revisions"}],"wp:attachment":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/media?parent=1717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/categories?post=1717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/tags?post=1717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}