{"id":1008,"date":"2025-02-26T01:49:55","date_gmt":"2025-02-26T01:49:55","guid":{"rendered":"https:\/\/satokotadesign.com\/blog\/?p=1008"},"modified":"2025-05-16T02:12:35","modified_gmt":"2025-05-16T02:12:35","slug":"css_roop","status":"publish","type":"post","link":"https:\/\/satokotadesign.com\/blog\/css_roop\/","title":{"rendered":"CSS\u3060\u3051\u3067\u5b9f\u88c5\uff01\u6587\u5b57\u3092\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u7121\u9650\u30eb\u30fc\u30d7\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067WEB\u30c7\u30b6\u30a4\u30ca\u30fc\u3092\u3057\u3066\u3044\u307e\u3059\u5c0f\u7027\u3067\u3059\u3002<\/p>\n<p>Web\u30b5\u30a4\u30c8\u3092\u8a2a\u308c\u305f\u3068\u304d\u3001<span class=\"sc_marker-animation\">\u6a2a\u306b\u6d41\u308c\u308b\u6587\u5b57\u3092\u898b\u304b\u3051\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/span><\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30cb\u30e5\u30fc\u30b9\u30b5\u30a4\u30c8\u306e\u30c6\u30ed\u30c3\u30d7\u3084\u3001EC\u30b5\u30a4\u30c8\u3067\u306e\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u60c5\u5831\u306a\u3069\u3001\u8996\u7dda\u3092\u5f15\u304d\u4ed8\u3051\u308b\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><span class=\"sc_marker-animation\">\u3053\u306e\u3088\u3046\u306a\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u3001JavaScript\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082CSS\u3060\u3051\u3067\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p>\u3057\u304b\u3082\u3001\u7121\u9650\u30eb\u30fc\u30d7\u3067\u52d5\u304b\u3057\u7d9a\u3051\u308b\u3053\u3068\u304c\u53ef\u80fd\uff01<\/p>\n<p>\u4eca\u56de\u306f\u3001CSS\u306ekeyframes\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u6d3b\u7528\u3057\u3066\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u3067\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">CSS\u3060\u3051\u3067\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u7121\u9650\u30eb\u30fc\u30d7\u3092\u5b9f\u88c5\u3059\u308b<\/span><\/h2>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<\/span><\/h3>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3001\u6587\u5b57\u304c\u5de6\u304b\u3089\u53f3\u3078\u6d41\u308c\u7d9a\u3051\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"azbmQea\" data-pen-title=\"Untitled\" data-user=\"ekwwawpb-the-styleful\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\/pen\/azbmQea\"><br \/>\n  Untitled<\/a> by \u5c0f\u7027\u8ce2 (<a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\">@ekwwawpb-the-styleful<\/a>)<br \/>\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<p><script async src=\"https:\/\/public.codepenassets.com\/embed\/index.js\"><\/script><\/p>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u30b3\u30fc\u30c9\u306e\u89e3\u8aac<\/span><\/h2>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">1. \u89aa\u8981\u7d20\uff08.marquee\uff09\u306e\u5f79\u5272<\/span><\/h3>\n<div class=\"sc_designlist ul fa_check blue\">\n<ul>\n<li><strong>overflow: hidden;<\/strong> \u2192 \u306f\u307f\u51fa\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u975e\u8868\u793a\u306b\u3059\u308b<\/li>\n<li><strong>white-space: nowrap;<\/strong> \u2192 \u30c6\u30ad\u30b9\u30c8\u3092\u6298\u308a\u8fd4\u3055\u305a\u3001\u6a2a\u4e00\u5217\u306b\u8868\u793a<\/li>\n<li><strong>position: relative;<\/strong> \u2192 \u5b50\u8981\u7d20\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u4f4d\u7f6e\u3092\u8abf\u6574<\/li>\n<\/ul><\/div>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">2. \u30c6\u30ad\u30b9\u30c8\u90e8\u5206\uff08.marquee p\uff09\u306e\u8a2d\u5b9a<\/span><\/h3>\n<div class=\"sc_designlist ul fa_check blue\">\n<ul>\n<li><strong>display: inline-block;<\/strong> \u2192 \u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u3068\u3057\u3066\u6a2a\u4e26\u3073\u306b\u3059\u308b<\/li>\n<li><strong>padding-left: 100%;<\/strong> \u2192 \u521d\u671f\u4f4d\u7f6e\u3092\u753b\u9762\u5916\uff08\u53f3\u7aef\uff09\u306b\u8a2d\u5b9a<\/li>\n<li><strong>animation: marquee-animation 10s linear infinite;<\/strong> \u2192 10\u79d2\u3054\u3068\u306b\u7e70\u308a\u8fd4\u3057\u52d5\u304b\u3059<\/li>\n<\/ul><\/div>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">3. keyframes\u3092\u4f7f\u3063\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/span><\/h3>\n<div class=\"sc_designlist ul fa_check blue\">\n<ul>\n<li><strong>from { transform: translateX(0%); }<\/strong> \u2192 \u521d\u671f\u4f4d\u7f6e<\/li>\n<li><strong>to { transform: translateX(-100%); }<\/strong> \u2192 \u30c6\u30ad\u30b9\u30c8\u304c\u5de6\u7aef\u3078\u79fb\u52d5<\/li>\n<\/ul><\/div>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u30dd\u30a4\u30f3\u30c8<\/span><\/h2>\n<p>\u3053\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u3001\u3088\u308a\u9b45\u529b\u7684\u306a\u30c7\u30b6\u30a4\u30f3\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">\u30b9\u30af\u30ed\u30fc\u30eb\u901f\u5ea6\u3092\u8abf\u6574<\/span><\/h3>\n<p>\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u3067\u306f <span class=\"fontbackground\" style=\"background:;\">animation: marquee-animation 10s linear infinite;<\/span> \u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u901f\u5ea6\u3092\u5909\u66f4\u3059\u308b\u306b\u306f<strong>\u79d2\u6570\uff0810s\uff09<\/strong>\u3092\u5909\u3048\u308b\u3060\u3051\u3067OK\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u30015\u79d2\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3055\u305b\u308b\u5834\u5408<\/p>\n<pre class=\"line-numbers\"><code class=\"language-css\"> .marquee p { animation: marquee-animation 5s linear infinite; \/* \u30b9\u30d4\u30fc\u30c9\u3092\u901f\u304f\u3059\u308b *\/ } <\/code><\/pre>\n<p>\u9006\u306b\u3001\u3086\u3063\u304f\u308a\u6d41\u3059\u5834\u5408\u306f15\u79d2\u308420\u79d2\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">\u30b9\u30af\u30ed\u30fc\u30eb\u306e\u65b9\u5411\u3092\u9006\u306b\u3059\u308b<\/span><\/h3>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u300c\u53f3 \u2192 \u5de6\u300d\u306b\u6d41\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u300c\u5de6 \u2192 \u53f3\u300d\u306b\u6d41\u3057\u305f\u3044\u5834\u5408\u306f\u3001<span class=\"fontbackground\" style=\"background:;\">translateX<\/span>\u306e\u5024\u3092\u53cd\u8ee2\u3057\u307e\u3059\u3002<\/p>\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"MYWjZgO\" data-pen-title=\"Untitled\" data-user=\"ekwwawpb-the-styleful\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\/pen\/MYWjZgO\"><br \/>\n  Untitled<\/a> by \u5c0f\u7027\u8ce2 (<a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\">@ekwwawpb-the-styleful<\/a>)<br \/>\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<p><script async src=\"https:\/\/public.codepenassets.com\/embed\/index.js\"><\/script><br \/>\n\u3053\u306e\u5909\u66f4\u306b\u3088\u308a\u3001\u5de6\u304b\u3089\u53f3\u3078\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">\u30c6\u30ad\u30b9\u30c8\u3092\u30eb\u30fc\u30d7\u3067\u81ea\u7136\u306b\u3064\u306a\u3052\u308b<\/span><\/h3>\n<p>\u901a\u5e38\u306e\u30b3\u30fc\u30c9\u3067\u306f\u30c6\u30ad\u30b9\u30c8\u304c\u6d88\u3048\u305f\u5f8c\u306b\u5c11\u3057\u9593\uff08\u30ae\u30e3\u30c3\u30d7\uff09\u304c\u3067\u304d\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u9632\u3050\u305f\u3081\u3001<strong>\u540c\u3058\u30c6\u30ad\u30b9\u30c8\u30922\u3064\u4e26\u3079\u308b<\/strong>\u3053\u3068\u3067\u30b9\u30e0\u30fc\u30ba\u306a\u7121\u9650\u30eb\u30fc\u30d7\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"NPWReWb\" data-pen-title=\"Untitled\" data-user=\"ekwwawpb-the-styleful\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\/pen\/NPWReWb\"><br \/>\n  Untitled<\/a> by \u5c0f\u7027\u8ce2 (<a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\">@ekwwawpb-the-styleful<\/a>)<br \/>\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<p><script async src=\"https:\/\/public.codepenassets.com\/embed\/index.js\"><\/script><\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u3092\u4f7f\u3046\u3068\u3001\u30c6\u30ad\u30b9\u30c8\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u3064\u306a\u304c\u3063\u305f\u307e\u307e\u30eb\u30fc\u30d7\u3057\u7d9a\u3051\u307e\u3059\u3002<\/p>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u307e\u3068\u3081<\/span><\/h2>\n<p>CSS\u3060\u3051\u3067\u6587\u5b57\u306e\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u7121\u9650\u30eb\u30fc\u30d7\u3092\u4f5c\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br \/>\nJavaScript\u306a\u3057\u3067\u5b9f\u88c5\u3067\u304d\u308b\u305f\u3081\u3001\u8efd\u91cf\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3082\u826f\u597d\u3067\u3059\u3002<\/p>\n<div class=\"sc_frame_wrap inline blue\">\n<div class=\"sc_frame_title\" >\u30dd\u30a4\u30f3\u30c8<\/div>\n<div class=\"sc_frame\"        >\n<div class=\"sc_designlist ul fa_check blue\">\n<ul>\n<li>keyframes\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30b7\u30f3\u30d7\u30eb\u306b\u5b9f\u88c5\u3067\u304d\u308b<\/li>\n<li>CSS\u306e\u8abf\u6574\u3067\u901f\u5ea6\u3084\u65b9\u5411\u3092\u81ea\u7531\u306b\u5909\u66f4\u53ef\u80fd<\/li>\n<li>\u30ae\u30e3\u30c3\u30d7\u3092\u306a\u304f\u3059\u306b\u306f\u30012\u3064\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u4e26\u3079\u3066\u30eb\u30fc\u30d7\u3055\u305b\u308b\u306e\u304c\u30b3\u30c4<\/li>\n<\/ul>\n<\/div><\/div>\n<\/div>\n<p>\u30b5\u30a4\u30c8\u306e\u30d0\u30ca\u30fc\u3084\u30cb\u30e5\u30fc\u30b9\u30c6\u30a3\u30c3\u30ab\u30fc\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u7528\u9014\u3067\u6d3b\u7528\u3067\u304d\u308b\u306e\u3067\u3001\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_475\" aria-describedby=\"caption-attachment-475\" style=\"width: 1500px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/satokotadesign.com\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr.jpg\" alt=\"\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u306a\u3089satokotadesign\" width=\"1500\" height=\"500\" class=\"size-full wp-image-475\" srcset=\"https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr.jpg 1500w, https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr-500x167.jpg 500w, https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr-1024x341.jpg 1024w, https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr-768x256.jpg 768w\" sizes=\"auto, (max-width: 1500px) 100vw, 1500px\" \/><\/a><figcaption id=\"caption-attachment-475\" class=\"wp-caption-text\"><a href=\"https:\/\/satokotadesign.com\/contact\/\" target=\"_blank\" rel=\"noopener\">\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u306a\u3089satokotadesign<\/a><\/figcaption><\/figure><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067WEB\u30c7\u30b6\u30a4\u30ca\u30fc\u3092\u3057\u3066\u3044\u307e\u3059\u5c0f\u7027\u3067\u3059\u3002 Web\u30b5\u30a4\u30c8\u3092\u8a2a\u308c\u305f\u3068\u304d\u3001\u6a2a\u306b\u6d41\u308c\u308b\u6587\u5b57\u3092\u898b\u304b\u3051\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u4f8b\u3048\u3070\u3001\u30cb\u30e5\u30fc\u30b9\u30b5\u30a4\u30c8\u306e\u30c6\u30ed\u30c3\u30d7\u3084\u3001EC\u30b5\u30a4\u30c8\u3067\u306e\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u60c5\u5831\u306a\u3069\u3001\u8996\u7dda\u3092\u5f15\u304d\u4ed8\u3051\u308b\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u2026<\/p>\n","protected":false},"author":1,"featured_media":1017,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[9],"class_list":["post-1008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-css"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/1008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/comments?post=1008"}],"version-history":[{"count":9,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/1008\/revisions"}],"predecessor-version":[{"id":1018,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/1008\/revisions\/1018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/media\/1017"}],"wp:attachment":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/media?parent=1008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/categories?post=1008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/tags?post=1008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}