{"id":179,"date":"2023-01-29T04:35:53","date_gmt":"2023-01-28T19:35:53","guid":{"rendered":"http:\/\/52.196.21.54.nip.io\/techblog\/?p=179"},"modified":"2023-01-27T04:38:13","modified_gmt":"2023-01-26T19:38:13","slug":"svg%e3%82%a2%e3%83%8b%e3%83%a1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%9c%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%ae%e3%83%9d%e3%82%a4%e3%83%b3%e3%83%88","status":"publish","type":"post","link":"https:\/\/shugomatsuzawa.com\/techblog\/2023\/01\/29\/179\/","title":{"rendered":"SVG\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3068\u304d\u306e\u30dd\u30a4\u30f3\u30c8"},"content":{"rendered":"\n<p>\u81ea\u5206\u306e\u65b0\u3057\u3044\u30ed\u30b4\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002<br>\u3053\u306e\u30ed\u30b4\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u60f3\u5b9a\u3057\u3066\u4f5c\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<svg id=\"layer1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" viewBox=\"0 0 583 583\" style=\"max-width: 200px;\">\n<defs>\n<style>\n#layer1{\n    --logo-color:#333;\n\n    \/* linear *\/\n    --ease-linear:cubic-bezier(0.0, 0.0, 1.0, 1.0);\n    \/* Sine\uff08\u6700\u3082\u5f31\u3044\uff09 *\/\n    --ease-in-sine:cubic-bezier(0.47, 0, 0.745, 0.715);\n    --ease-out-sine:cubic-bezier(0.39, 0.575, 0.565, 1);\n    --ease-in-out-sine:cubic-bezier(0.445, 0.05, 0.55, 0.95);\n    \/* Quad\uff08\u5f31\u3081\u3002Sine\u3088\u308a\u5f37\u304f\u3001Cubic\u3088\u308a\u5f31\u3044\uff09 *\/\n    --ease-in-quad:cubic-bezier(0.55, 0.085, 0.68, 0.53);\n    --ease-out-quad:cubic-bezier(0.25, 0.46, 0.45, 0.94);\n    --ease-in-out-quad:cubic-bezier(0.455, 0.03, 0.515, 0.955);\n    \/* Cubic\uff08Quad\u3088\u308a\u5f37\u304f\u3001Quart\u3088\u308a\u5f31\u3044\uff09 *\/\n    --ease-in-cubic:cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    --ease-out-cubic:cubic-bezier(0.215, 0.61, 0.355, 1);\n    --ease-in-out-cubic:cubic-bezier(0.645, 0.045, 0.355, 1);\n    \/* Quart\uff08Cubic\u3088\u308a\u5f37\u304f\u3001Quint\u3088\u308a\u5f31\u3044\uff09 *\/\n    --ease-in-quart:cubic-bezier(0.895, 0.03, 0.685, 0.22);\n    --ease-out-quart:cubic-bezier(0.165, 0.84, 0.44, 1);\n    --ease-in-out-quart:cubic-bezier(0.77, 0, 0.175, 1);\n    \/* Quint\uff08Quart\u3088\u308a\u5f37\u304f\u3001Expo\u3088\u308a\u5f31\u3044\uff09 *\/\n    --ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    --ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);\n    --ease-in-out-quint:cubic-bezier(0.86, 0, 0.07, 1);\n    \/* Expo\uff08\u6700\u3082\u5f37\u3044\uff09 *\/\n    --ease-in-expo:cubic-bezier(0.95, 0.05, 0.795, 0.035);\n    --ease-out-expo:cubic-bezier(0.19, 1, 0.22, 1);\n    --ease-in-out-expo:cubic-bezier(1, 0, 0, 1);\n    \/* Circ\uff08Expo\u306e\u3088\u3046\u306a\u5f37\u3055\u3092\u6301\u3064\u304c\u3001\u52a0\u901f\u3084\u6e1b\u901f\u306e\u6642\u9593\u304c\u3088\u308a\u3086\u308b\u3084\u304b\u3002\uff09 *\/\n    --ease-in-circ:cubic-bezier(0.6, 0.04, 0.98, 0.335);\n    --ease-out-circ:cubic-bezier(0.075, 0.82, 0.165, 1);\n    --ease-in-out-circ:cubic-bezier(0.785, 0.135, 0.15, 0.86);\n    \/* Back\uff08\u5c11\u3057\u884c\u304d\u904e\u304e\u3066\u304b\u3089\u623b\u3063\u3066\u304f\u308b\u3088\u3046\u306a\u52d5\u304d\uff09 *\/\n    --ease-in-back:cubic-bezier(0.6, -0.28, 0.735, 0.045);\n    --ease-out-back:cubic-bezier(0.175, 0.885, 0.32, 1.275);\n    --ease-in-out-back:cubic-bezier(0.68, -0.55, 0.265, 1.55);\n}\n.cls-1{fill:none;}\n.cls-2{clip-path:url(#clippath);}\n.cls-3{clip-path:url(#clippath-1);}\n.cls-4{clip-path:url(#clippath-3);}\n.cls-5{clip-path:url(#clippath-2);}\n.cls-6{stroke-linecap:square;}\n.cls-6,.cls-7{\n    fill:transparent;\n    stroke:var(--logo-color);\n    stroke-miterlimit:10;\n    stroke-width:30px;\n}\n#huyu-dot1,#huyu-dot2{\n    fill:var(--logo-color);\n}\n@media (prefers-reduced-motion: no-preference) {\n    .cls-6,.cls-7{\n        stroke-dasharray: 583;\n        stroke-dashoffset: 583;\n        animation: line 1.5s var(--ease-out-expo) forwards;\n    }\n    #huyu-line1,#huyu-line2{\n        animation-delay: 0.2s;\n    }\n    #huyu-line3{\n        animation-delay: 0.4s;\n    }\n    #huyu-dot1,#huyu-dot2{\n        transform: scale(0);\n        animation: dot 0.8s var(--ease-out-back) forwards;\n    }\n    #huyu-dot1{\n        animation-delay: 0.4s;\n        transform-origin: 74.96% 65.69%; \/* (\u5ea7\u6a19\/viewBox\u30b5\u30a4\u30ba*100)% *\/\n    }\n    #huyu-dot2{\n        animation-delay: 0.6s;\n        transform-origin: 74.96% 87.99%; \/* (\u5ea7\u6a19\/viewBox\u30b5\u30a4\u30ba*100)% *\/\n    }\n}\n@keyframes line {\n    to {\n        stroke-dashoffset: 0;\n    }\n}\n@keyframes dot {\n    to {\n        transform: scale(1);\n    }\n}\n<\/style>\n<clipPath id=\"clippath\"><rect id=\"huyu-clippath\" class=\"cls-1\" x=\"291\" width=\"292\" height=\"583\"\/><\/clipPath>\n<clipPath id=\"clippath-1\"><polygon id=\"huyu-line3-clippath\" class=\"cls-1\" points=\"583 0 291 291.5 291 583 583 583 583 0\"\/><\/clipPath>\n<clipPath id=\"clippath-2\"><rect id=\"ki-bottom-clippath\" class=\"cls-1\" y=\"270\" width=\"230\" height=\"313\"\/><\/clipPath>\n<clipPath id=\"clippath-3\"><rect id=\"ki-top-clippath\" class=\"cls-1\" width=\"230\" height=\"167\"\/><\/clipPath>\n<\/defs>\n<g id=\"huyu\">\n    <g class=\"cls-2\">\n        <circle id=\"huyu-dot2\" cx=\"437\" cy=\"513\" r=\"30\"\/>\n        <circle id=\"huyu-dot1\" cx=\"437\" cy=\"383\" r=\"30\"\/>\n        <g id=\"huyu-line3-mask\">\n            <g class=\"cls-3\">\n                <line id=\"huyu-line3\" class=\"cls-6\" x1=\"291.25\" x2=\"582.38\" y2=\"291.12\"\/>\n            <\/g>\n        <\/g>\n        <line id=\"huyu-line2\" class=\"cls-6\" x1=\"582.75\" y1=\"-.25\" x2=\"291\" y2=\"291.5\"\/>\n        <line id=\"huyu-line1\" class=\"cls-6\" x1=\"436.75\" y1=\"-.25\" x2=\"145\" y2=\"291.5\"\/>\n    <\/g>\n<\/g>\n<g id=\"ki\">\n    <g id=\"ki-bottom\">\n        <g class=\"cls-5\">\n            <line id=\"ki-line3-bottom\" class=\"cls-7\" x1=\"215\" y1=\"583\" x2=\"215\" y2=\"0\"\/>\n            <line id=\"ki-line2-bottom\" class=\"cls-7\" x1=\"15\" y1=\"583\" x2=\"15\" y2=\"0\"\/>\n        <\/g>\n    <\/g>\n    <g id=\"ki-top\">\n        <g class=\"cls-4\">\n            <line id=\"ki-line3-top\" class=\"cls-7\" x1=\"215\" y1=\"583\" x2=\"215\" y2=\"0\"\/>\n            <line id=\"ki-line2-top\" class=\"cls-7\" x1=\"15\" y1=\"583\" x2=\"15\" y2=\"0\"\/>\n        <\/g>\n    <\/g>\n    <line id=\"ki-line1\" class=\"cls-7\" x1=\"115\" x2=\"115\" y2=\"583\"\/>\n<\/g>\n<\/svg>\n\n\n\n<p>SVG\u306e\u4e2d\u8eab\u306f\u3053\u3093\u306a\u3075\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;svg id=\"layer1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" viewBox=\"0 0 583 583\"&gt;\n&lt;defs&gt;\n&lt;style&gt;\n#layer1{\n    --logo-color:#333;\n\n    \/* linear *\/\n    --ease-linear:cubic-bezier(0.0, 0.0, 1.0, 1.0);\n    \/* Sine\uff08\u6700\u3082\u5f31\u3044\uff09 *\/\n    --ease-in-sine:cubic-bezier(0.47, 0, 0.745, 0.715);\n    --ease-out-sine:cubic-bezier(0.39, 0.575, 0.565, 1);\n    --ease-in-out-sine:cubic-bezier(0.445, 0.05, 0.55, 0.95);\n    \/* Quad\uff08\u5f31\u3081\u3002Sine\u3088\u308a\u5f37\u304f\u3001Cubic\u3088\u308a\u5f31\u3044\uff09 *\/\n    --ease-in-quad:cubic-bezier(0.55, 0.085, 0.68, 0.53);\n    --ease-out-quad:cubic-bezier(0.25, 0.46, 0.45, 0.94);\n    --ease-in-out-quad:cubic-bezier(0.455, 0.03, 0.515, 0.955);\n    \/* Cubic\uff08Quad\u3088\u308a\u5f37\u304f\u3001Quart\u3088\u308a\u5f31\u3044\uff09 *\/\n    --ease-in-cubic:cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    --ease-out-cubic:cubic-bezier(0.215, 0.61, 0.355, 1);\n    --ease-in-out-cubic:cubic-bezier(0.645, 0.045, 0.355, 1);\n    \/* Quart\uff08Cubic\u3088\u308a\u5f37\u304f\u3001Quint\u3088\u308a\u5f31\u3044\uff09 *\/\n    --ease-in-quart:cubic-bezier(0.895, 0.03, 0.685, 0.22);\n    --ease-out-quart:cubic-bezier(0.165, 0.84, 0.44, 1);\n    --ease-in-out-quart:cubic-bezier(0.77, 0, 0.175, 1);\n    \/* Quint\uff08Quart\u3088\u308a\u5f37\u304f\u3001Expo\u3088\u308a\u5f31\u3044\uff09 *\/\n    --ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    --ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);\n    --ease-in-out-quint:cubic-bezier(0.86, 0, 0.07, 1);\n    \/* Expo\uff08\u6700\u3082\u5f37\u3044\uff09 *\/\n    --ease-in-expo:cubic-bezier(0.95, 0.05, 0.795, 0.035);\n    --ease-out-expo:cubic-bezier(0.19, 1, 0.22, 1);\n    --ease-in-out-expo:cubic-bezier(1, 0, 0, 1);\n    \/* Circ\uff08Expo\u306e\u3088\u3046\u306a\u5f37\u3055\u3092\u6301\u3064\u304c\u3001\u52a0\u901f\u3084\u6e1b\u901f\u306e\u6642\u9593\u304c\u3088\u308a\u3086\u308b\u3084\u304b\u3002\uff09 *\/\n    --ease-in-circ:cubic-bezier(0.6, 0.04, 0.98, 0.335);\n    --ease-out-circ:cubic-bezier(0.075, 0.82, 0.165, 1);\n    --ease-in-out-circ:cubic-bezier(0.785, 0.135, 0.15, 0.86);\n    \/* Back\uff08\u5c11\u3057\u884c\u304d\u904e\u304e\u3066\u304b\u3089\u623b\u3063\u3066\u304f\u308b\u3088\u3046\u306a\u52d5\u304d\uff09 *\/\n    --ease-in-back:cubic-bezier(0.6, -0.28, 0.735, 0.045);\n    --ease-out-back:cubic-bezier(0.175, 0.885, 0.32, 1.275);\n    --ease-in-out-back:cubic-bezier(0.68, -0.55, 0.265, 1.55);\n}\n.cls-1{fill:none;}\n.cls-2{clip-path:url(#clippath);}\n.cls-3{clip-path:url(#clippath-1);}\n.cls-4{clip-path:url(#clippath-3);}\n.cls-5{clip-path:url(#clippath-2);}\n.cls-6{stroke-linecap:square;}\n.cls-6,.cls-7{\n    fill:transparent;\n    stroke:var(--logo-color);\n    stroke-miterlimit:10;\n    stroke-width:30px;\n}\n#huyu-dot1,#huyu-dot2{\n    fill:var(--logo-color);\n}\n@media (prefers-reduced-motion: no-preference) {\n    .cls-6,.cls-7{\n        stroke-dasharray: 583;\n        stroke-dashoffset: 583;\n        animation: line 1.5s var(--ease-out-expo) forwards;\n    }\n    #huyu-line1,#huyu-line2{\n        animation-delay: 0.2s;\n    }\n    #huyu-line3{\n        animation-delay: 0.4s;\n    }\n    #huyu-dot1,#huyu-dot2{\n        transform: scale(0);\n        animation: dot 0.8s var(--ease-out-back) forwards;\n    }\n    #huyu-dot1{\n        animation-delay: 0.4s;\n        transform-origin: 74.96% 65.69%; \/* (\u5ea7\u6a19\/viewBox\u30b5\u30a4\u30ba*100)% *\/\n    }\n    #huyu-dot2{\n        animation-delay: 0.6s;\n        transform-origin: 74.96% 87.99%; \/* (\u5ea7\u6a19\/viewBox\u30b5\u30a4\u30ba*100)% *\/\n    }\n}\n@keyframes line {\n    to {\n        stroke-dashoffset: 0;\n    }\n}\n@keyframes dot {\n    to {\n        transform: scale(1);\n    }\n}\n&lt;\/style&gt;\n&lt;clipPath id=\"clippath\"&gt;&lt;rect id=\"huyu-clippath\" class=\"cls-1\" x=\"291\" width=\"292\" height=\"583\"\/&gt;&lt;\/clipPath&gt;\n&lt;clipPath id=\"clippath-1\"&gt;&lt;polygon id=\"huyu-line3-clippath\" class=\"cls-1\" points=\"583 0 291 291.5 291 583 583 583 583 0\"\/&gt;&lt;\/clipPath&gt;\n&lt;clipPath id=\"clippath-2\"&gt;&lt;rect id=\"ki-bottom-clippath\" class=\"cls-1\" y=\"270\" width=\"230\" height=\"313\"\/&gt;&lt;\/clipPath&gt;\n&lt;clipPath id=\"clippath-3\"&gt;&lt;rect id=\"ki-top-clippath\" class=\"cls-1\" width=\"230\" height=\"167\"\/&gt;&lt;\/clipPath&gt;\n&lt;\/defs&gt;\n&lt;g id=\"huyu\"&gt;\n    &lt;g class=\"cls-2\"&gt;\n        &lt;circle id=\"huyu-dot2\" cx=\"437\" cy=\"513\" r=\"30\"\/&gt;\n        &lt;circle id=\"huyu-dot1\" cx=\"437\" cy=\"383\" r=\"30\"\/&gt;\n        &lt;g id=\"huyu-line3-mask\"&gt;\n            &lt;g class=\"cls-3\"&gt;\n                &lt;line id=\"huyu-line3\" class=\"cls-6\" x1=\"291.25\" x2=\"582.38\" y2=\"291.12\"\/&gt;\n            &lt;\/g&gt;\n        &lt;\/g&gt;\n        &lt;line id=\"huyu-line2\" class=\"cls-6\" x1=\"582.75\" y1=\"-.25\" x2=\"291\" y2=\"291.5\"\/&gt;\n        &lt;line id=\"huyu-line1\" class=\"cls-6\" x1=\"436.75\" y1=\"-.25\" x2=\"145\" y2=\"291.5\"\/&gt;\n    &lt;\/g&gt;\n&lt;\/g&gt;\n&lt;g id=\"ki\"&gt;\n    &lt;g id=\"ki-bottom\"&gt;\n        &lt;g class=\"cls-5\"&gt;\n            &lt;line id=\"ki-line3-bottom\" class=\"cls-7\" x1=\"215\" y1=\"583\" x2=\"215\" y2=\"0\"\/&gt;\n            &lt;line id=\"ki-line2-bottom\" class=\"cls-7\" x1=\"15\" y1=\"583\" x2=\"15\" y2=\"0\"\/&gt;\n        &lt;\/g&gt;\n    &lt;\/g&gt;\n    &lt;g id=\"ki-top\"&gt;\n        &lt;g class=\"cls-4\"&gt;\n            &lt;line id=\"ki-line3-top\" class=\"cls-7\" x1=\"215\" y1=\"583\" x2=\"215\" y2=\"0\"\/&gt;\n            &lt;line id=\"ki-line2-top\" class=\"cls-7\" x1=\"15\" y1=\"583\" x2=\"15\" y2=\"0\"\/&gt;\n        &lt;\/g&gt;\n    &lt;\/g&gt;\n    &lt;line id=\"ki-line1\" class=\"cls-7\" x1=\"115\" x2=\"115\" y2=\"583\"\/&gt;\n&lt;\/g&gt;\n&lt;\/svg&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u8aac<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b9\u30c8\u30ed\u30fc\u30af\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>.cls-6,.cls-7{\n    stroke-dasharray: 583;\n    stroke-dashoffset: 583;\n    animation: line 1.5s var(--ease-out-expo) forwards;\n}\n@keyframes line {\n    to {\n        stroke-dashoffset: 0;\n    }\n}<\/code><\/pre>\n\n\n\n<p><code>stroke-dasharray<\/code>\u3067\u30b9\u30c8\u30ed\u30fc\u30af\u306e\u9577\u3055\u3068\u540c\u3058\u9577\u3055\u306e\u7834\u7dda\u3092\u4f5c\u308a\u3001<code>stroke-dashoffset<\/code>\u3067\u7834\u7dda\u306e\u57fa\u6e96\u4f4d\u7f6e\u3092\u305a\u3089\u3057\u3066\u3042\u3052\u308b\u3002<\/p>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a<code>stroke-dasharray: 1000;<\/code>\u3068\u304b\u9069\u5f53\u306a\u6570\u5b57\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308b\u8a18\u4e8b\u3082\u3042\u308b\u304c\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30a4\u30fc\u30b8\u30f3\u30b0\u3084\u7d30\u304b\u3044\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u8abf\u6574\u304c\u96e3\u3057\u304f\u306a\u308b\u306e\u3067\u3001\u3053\u3053\u306f\u3061\u3083\u3093\u3068\u8abf\u6574\u3059\u308b\u3079\u304d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u305d\u306e\u5834\u3067\u62e1\u5927\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#huyu-dot1,#huyu-dot2{\n    transform: scale(0);\n    animation: dot 0.8s var(--ease-out-back) forwards;\n}\n#huyu-dot1{\n    animation-delay: 0.4s;\n    transform-origin: 74.96% 65.69%; \/* (\u5ea7\u6a19\/viewBox\u30b5\u30a4\u30ba*100)% *\/\n}\n#huyu-dot2{\n    animation-delay: 0.6s;\n    transform-origin: 74.96% 87.99%; \/* (\u5ea7\u6a19\/viewBox\u30b5\u30a4\u30ba*100)% *\/\n}<\/code><\/pre>\n\n\n\n<p><code>transform: scale();<\/code>\u3067\u62e1\u5927\u3059\u308b\u5834\u5408\u3001<code>viewBox<\/code>\u306e\u4e2d\u5fc3\u3092\u57fa\u6e96\u306b\u62e1\u5927\u3057\u3066\u3057\u307e\u3046\u3002<br><code>rotate<\/code>\u306e\u5834\u5408\u306f\u4e2d\u5fc3\u5ea7\u6a19\u3092\u6307\u5b9a\u3067\u304d\u308b\u304c<code>scale<\/code>\u3060\u3068\u3067\u304d\u306a\u3044\u306e\u3067\u3001<code>transform-origin<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u300c\u8996\u5dee\u52b9\u679c\u3092\u6e1b\u3089\u3059\u300d\u3078\u306e\u5bfe\u5fdc<\/h3>\n\n\n\n<p>prefers-reduced-motion\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u306e\u4e2d\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u95a2\u9023\u306e\u6307\u793a\u3092\u307e\u3068\u3081\u3066\u304a\u304f\u3068\u3001\u300c\u8996\u5dee\u52b9\u679c\u3092\u6e1b\u3089\u3059\u300d\u306a\u3069OS\u306e\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u6a5f\u80fd\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p><code>reduce<\/code>\u304c\u300c\u8996\u5dee\u52b9\u679c\u3092\u6e1b\u3089\u3059\u300d\u304c\u6709\u52b9\u306a\u72b6\u614b\u3002<br><code>no-preference<\/code>\u304c\u300c\u8996\u5dee\u52b9\u679c\u3092\u6e1b\u3089\u3059\u300d\u306e\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u3066\u3044\u306a\u3044\u72b6\u614b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>img<\/code>\u304b\u3001<code>svg<\/code>\u304b\u3001<code>object<\/code>\u304b\u3001\u30a4\u30f3\u30e9\u30a4\u30f3\u304b<\/h3>\n\n\n\n<p>\u5b9f\u969b\u306b\u30b5\u30a4\u30c8\u306b\u8aad\u307f\u8fbc\u3080\u3068\u304d\u306b\u3044\u3064\u3082<code>img<\/code>\u30bf\u30b0\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001<code>img<\/code>\u306e\u5834\u5408<code>svg<\/code>\u30d5\u30a1\u30a4\u30eb\u304c\u8aad\u307f\u8fbc\u307e\u308c\u305f\u6700\u521d\u306e1\u56de\u76ee\u306e\u307f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u52d5\u304d\u3001\u305d\u306e\u5f8c\u306e\u8aad\u307f\u8fbc\u307f\u3067\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u30af\u30ea\u30a2\u3057\u306a\u3044\u9650\u308a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u52d5\u4f5c\u3057\u306a\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30e9\u30a4\u30f3\u306b\u3057\u3066\u3082\u826f\u304b\u3063\u305f\u306e\u3060\u3051\u3069\u7d50\u69cb\u30b3\u30fc\u30c9\u304c\u9577\u304f\u306a\u308b\u3057\u3001<code>svg<\/code>\u306e<code>use<\/code>\u30bf\u30b0\u3068\u304b\u3082<code>symbol<\/code>\u30bf\u30b0\u3068\u304b\u6e96\u5099\u304c\u9762\u5012\u3060\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306f<code>object<\/code>\u3067\u884c\u304f\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;a href=\"&lt;?php echo home_url(); ?&gt;\"&gt;\n    &lt;object type=\"image\/svg+xml\" data=\"&lt;?php echo get_template_directory_uri(); ?&gt;\/images\/logo_animation.svg\" width=\"60\" height=\"60\" aria-label=\"&lt;?php bloginfo('name'); ?&gt;\"&gt;&lt;\/object&gt;\n&lt;\/a&gt;<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u5834\u5408<code>object<\/code>\u306b\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u5438\u308f\u308c\u3066<code>a<\/code>\u8981\u7d20\u304c\u30af\u30ea\u30c3\u30af\u3067\u304d\u306a\u3044\u3002<br><code>object<\/code>\u8981\u7d20\u306b<code>pointer-events: none;<\/code>\u3092\u304b\u3051\u3066\u5bfe\u51e6\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u53c2\u8003<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.evoworx.co.jp\/blog\/svg_transform\/\" data-type=\"URL\" data-id=\"https:\/\/www.evoworx.co.jp\/blog\/svg_transform\/\" target=\"_blank\" rel=\"noreferrer noopener\">SVG\u306etransform-origin\u306b\u30cf\u30de\u3063\u305f\u8a71\uff08IE,safari,\u30de\u30eb\u30c1\u30d6\u30e9\u30a6\u30b6\u5bfe\u5fdc\uff09 | \u682a\u5f0f\u4f1a\u793e \u30a8\u30f4\u30a9\u30ef\u30fc\u30af\u30b9 -EVOWORX-<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/qiita.com\/yo1000\/items\/53f31282b6b10e71b206\" data-type=\"URL\" data-id=\"https:\/\/qiita.com\/yo1000\/items\/53f31282b6b10e71b206\" target=\"_blank\" rel=\"noreferrer noopener\">object \u30bf\u30b0\u3092\u30a2\u30f3\u30ab\u30fc\u30ea\u30f3\u30af\u3067\u56f2\u3093\u3067\u3082\u30ea\u30f3\u30af\u306b\u306a\u3089\u306a\u3044 &#8211; Qiita<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/ics.media\/entry\/18730\/\" data-type=\"URL\" data-id=\"https:\/\/ics.media\/entry\/18730\/\" target=\"_blank\" rel=\"noreferrer noopener\">CSS\u30a4\u30fc\u30b8\u30f3\u30b0\u306e\u304a\u624b\u672c &#8211; ease-out, ease-in, linear\u306e\u4f7f\u3044\u5206\u3051 &#8211; ICS MEDIA<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u81ea\u5206\u306e\u65b0\u3057\u3044\u30ed\u30b4\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002\u3053\u306e\u30ed\u30b4\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u60f3\u5b9a\u3057\u3066\u4f5c\u3063\u3066\u3044\u308b\u3002 SVG\u306e\u4e2d\u8eab\u306f\u3053\u3093\u306a\u3075\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002 \u89e3\u8aac \u30b9\u30c8\u30ed\u30fc\u30af\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3 stroke-dasharray\u3067\u30b9\u30c8\u30ed\u30fc\u30af\u306e\u9577\u3055\u3068\u540c\u3058\u9577\u3055\u306e\u7834\u7dda\u3092 [&hellip;]","protected":false},"author":1,"featured_media":185,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[47],"tags":[50,51,63,10],"class_list":["post-179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-frontend","tag-css","tag-html","tag-svg","tag-memo"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2023\/01\/logo3.0_with-bg.webp","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":5,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":184,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/179\/revisions\/184"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media\/185"}],"wp:attachment":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}