{"id":1239,"date":"2021-05-05T15:53:43","date_gmt":"2021-05-05T06:53:43","guid":{"rendered":"https:\/\/ito-u-oti.com\/?p=1239"},"modified":"2021-05-05T15:53:45","modified_gmt":"2021-05-05T06:53:45","slug":"bootstrap4-navbar-hamburger-animation","status":"publish","type":"post","link":"https:\/\/ito-u-oti.com\/?p=1239","title":{"rendered":"Bootstrap4\u306e\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b"},"content":{"rendered":"\n<p>Bootstrap4\u306enavbar\u3067\u8a2d\u7f6e\u3067\u304d\u308b\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u4eca\u98a8\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u305f\u304f\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u305b\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">\u5b8c\u6210\u5f62<\/h2>\n\n\n\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"codepen\" data-height=\"265\" data-theme-id=\"dark\" data-default-tab=\"html,result\" data-user=\"itouoti12\" data-slug-hash=\"PopYxxj\" style=\"height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\" data-pen-title=\"navbar hamburger animation\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/itouoti12\/pen\/PopYxxj\">\n  navbar hamburger animation<\/a> by itouoti12 (<a href=\"https:\/\/codepen.io\/itouoti12\">@itouoti12<\/a>)\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<p>\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30013\u672c\u7dda\u304c\u304f\u308b\u3063\u3068\u56de\u8ee2\u3057\u3066\u300c\u2715\u300d\u30de\u30fc\u30af\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">Bootstrap\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>bootstrap\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f4.3.1\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt;\n\n    &lt;!-- Bootstrap CSS --&gt;\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.3.1\/css\/bootstrap.min.css&quot;\n        integrity=&quot;sha384-ggOyR0iXCbMQv3Xipma34MD+dH\/1fQ784\/j6cY\/iJTQUOhcWr7x9JvoRxT2MZw1T&quot; crossorigin=&quot;anonymous&quot;&gt;\n\n    &lt;!-- jQuery first, then Popper.js, then Bootstrap JS --&gt;\n    &lt;script src=&quot;https:\/\/code.jquery.com\/jquery-3.3.1.min.js&quot;\n        integrity=&quot;sha256-FgpCb\/KJQlLNfOu91ta32o\/NMZxltwRo8QtmkMRdAu8=&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;\/script&gt;\n    &lt;script src=&quot;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/popper.js\/1.14.7\/umd\/popper.min.js&quot;\n        integrity=&quot;sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1&quot;\n        crossorigin=&quot;anonymous&quot;&gt;&lt;\/script&gt;\n    &lt;script src=&quot;https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.3.1\/js\/bootstrap.min.js&quot;\n        integrity=&quot;sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf\/nJGzIxFDsf4x0xIM+B07jRM&quot;\n        crossorigin=&quot;anonymous&quot;&gt;&lt;\/script&gt;\n<\/pre><\/div>\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">navbar\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n\n\n\n<p>\u307e\u305a\u306f\u30d7\u30ec\u30fc\u30f3\u306a\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u3092\u8a2d\u7f6e\u3057\u3066\u307f\u307e\u3059\u3002<br>\u3053\u306e\u6642\u70b9\u3067\u306f\u7279\u306b\u30ab\u30b9\u30bf\u30e0\u306f\u3057\u3066\u306a\u3044\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n    &lt;nav class=&quot;navbar navbar-expand-md fixed-top navbar-light bg-light&quot;&gt;\n        &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt;\n          \u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u306e\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3059\u308b\n        &lt;\/a&gt;\n        &lt;button class=&quot;navbar-toggler&quot; type=&quot;button&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#navbarNav&quot;\n            aria-controls=&quot;navbarNav&quot; aria-expanded=&quot;false&quot; aria-label=&quot;Toggle navigation&quot;&gt;\n            &lt;span class=&quot;navbar-toggler-icon&quot;&gt;&lt;\/span&gt;\n        &lt;\/button&gt;\n        &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;navbarNav&quot;&gt;\n            &lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;\n                &lt;li class=&quot;nav-item&quot;&gt;\n                    &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;page1&lt;\/a&gt;\n                &lt;\/li&gt;\n                &lt;li class=&quot;nav-item&quot;&gt;\n                    &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;page2&lt;\/a&gt;\n                &lt;\/li&gt;\n                &lt;li class=&quot;nav-item&quot;&gt;\n                    &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;page3&lt;\/a&gt;\n                &lt;\/li&gt;\n            &lt;\/ul&gt;\n        &lt;\/div&gt;\n    &lt;\/nav&gt;\n<\/pre><\/div>\n\n\n<p>\u3059\u308b\u3068\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u7e2e\u5c0f\u3057\u305f\u6642\u306b\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304f\u524d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"628\" height=\"122\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image.png\" alt=\"\" class=\"wp-image-1240\"\/><\/figure>\n\n\n\n<p>\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u305f\u5f8c<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"491\" height=\"210\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-1.png\" alt=\"\" class=\"wp-image-1241\"\/><\/figure>\n\n\n\n<p>\u305d\u3057\u3066\u3053\u308c\u304b\u3089\u4ee5\u4e0b\u306e\u7b87\u6240\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30b3\u30f3\u306e\u5916\u67a0\u306e\u7dda\u3092\u6d88\u3059<\/li><li>\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30b3\u30f3\u3092\u62bc\u3057\u305f\u5f8c\u306e\u9078\u629e\u52d5\u4f5c\u3092\u6d88\u3059\uff08\u9752\u67a0\uff09<\/li><li>\u30a2\u30a4\u30b3\u30f3\u306e\u4e2d\u306e\u4e09\u672c\u7dda\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u308b<\/li><\/ul>\n\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\">\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30b3\u30f3\u306e\u5916\u67a0\u306e\u7dda\u3092\u6d88\u3059<\/h2>\n\n\n\n<p>css\u3067bootstrap\u306e\u30af\u30e9\u30b9\u3092\u62e1\u5f35\u3057\u3001border-color\u306eopacity\u30920\u306b\u3057\u3066\u6d88\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.navbar-light .navbar-toggler {\n  border-color: rgba(0, 0, 0, 0);\n}\n<\/pre><\/div>\n\n\n<p>\u6d88\u3048\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"530\" height=\"106\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-2.png\" alt=\"\" class=\"wp-image-1243\"\/><\/figure>\n\n\n\n<h2 id=\"outline__5\" class=\"wp-block-heading\">\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30b3\u30f3\u3092\u62bc\u3057\u305f\u5f8c\u306e\u9078\u629e\u52d5\u4f5c\u3092\u6d88\u3059\uff08\u9752\u67a0\uff09<\/h2>\n\n\n\n<p>css\u3067bootstrap\u306e\u30af\u30e9\u30b9\u3092\u62e1\u5f35\u3057\u3001outline:none\u3092\u4ed8\u4e0e\u3057\u3066\u6d88\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.navbar-light .navbar-toggler {\n  border-color: rgba(0, 0, 0, 0);\n  outline: none;\n}\n<\/pre><\/div>\n\n\n<p>\u6d88\u3048\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"460\" height=\"210\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-3.png\" alt=\"\" class=\"wp-image-1244\"\/><\/figure>\n\n\n\n<h2 id=\"outline__6\" class=\"wp-block-heading\">\u30a2\u30a4\u30b3\u30f3\u306e\u4e2d\u306e\u4e09\u672c\u7dda\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u308b<\/h2>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u304c\u672c\u756a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u5143\u3005\u306eBootstrap\u4e0a\u3067\u306e3\u672c\u7dda\u306f\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u3068\u3001background-image\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>\u3064\u307e\u308aimage\u3068\u3057\u3066\u8868\u793a\u3057\u3066\u3044\u308b\u3082\u306e\u306b\u306a\u308b\u306e\u3067\u3001\u3053\u306e\u307e\u307e\u3060\u3068\u7dda\u4e00\u3064\u4e00\u3064\u306b\u52d5\u304d\u3092\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<br>\u306a\u306e\u3067\u3001\u4e00\u65e6\u5143\u3005\u63cf\u753b\u3055\u308c\u3066\u3044\u308b3\u672c\u7dda\u3092\u6d88\u3057\u3064\u3064\u3001\u4e0a\u304b\u3089\u7dda\u30921\u672c\u305a\u3064\u518d\u63cf\u753b\u3055\u305b\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306fHTML\u3067span\u30bf\u30b0\u30923\u3064\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n        &lt;button class=&quot;navbar-toggler&quot; type=&quot;button&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#navbarNav&quot;\n            aria-controls=&quot;navbarNav&quot; aria-expanded=&quot;false&quot; aria-label=&quot;Toggle navigation&quot;&gt;\n            &lt;span class=&quot;navbar-toggler-icon&quot;&gt;\n                &lt;span&gt;&lt;\/span&gt;\n                &lt;span&gt;&lt;\/span&gt;\n                &lt;span&gt;&lt;\/span&gt;\n            &lt;\/span&gt;\n        &lt;\/button&gt;\n<\/pre><\/div>\n\n\n<p>\u6b21\u306bcss\u4e0a\u3067\u5143\u3005\u306ebackground-image\u3092\u6d88\u3057\u3064\u3064\u3001\u7dda\u3092\u5f15\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.navbar-light .navbar-toggler {\n  border-color: rgba(0, 0, 0, 0);\n  outline: none;\n}\n\n.navbar-light .navbar-toggler-icon {\n  background-image: none;\n}\n\n.navbar-toggler-icon {\n  position: relative;\n  width: 40px;\n  height: 40px;\n  background: none;\n  appearance: none;\n  cursor: pointer;\n\n  &amp;,\n  span {\n    display: inline-block;\n    box-sizing: border-box;\n  }\n\n  span {\n    position: absolute;\n    left: 5px;\n    width: 80%;\n    height: 2px;\n    background-color: rgba(165, 165, 165, 1);\n    border-radius: 1px;\n\n    &amp;:nth-of-type(1) {\n      top: 8px;\n    }\n    &amp;:nth-of-type(2) {\n      top: 20px;\n    }\n    &amp;:nth-of-type(3) {\n      top: 32px;\n    }\n  }\n}\n<\/pre><\/div>\n\n\n<p>\u518d\u63cf\u753b\u3057\u305f\u30e1\u30cb\u30e5\u30fc\u304c\u3053\u3061\u3089\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"573\" height=\"125\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-4.png\" alt=\"\" class=\"wp-image-1246\"\/><\/figure>\n\n\n\n<p>\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u305f\u3068\u304d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"454\" height=\"209\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-5.png\" alt=\"\" class=\"wp-image-1247\"\/><\/figure>\n\n\n\n<p>\u9055\u548c\u611f\u306a\u304f\u63cf\u753b\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3053\u3053\u304b\u3089\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u3051\u3066\u3044\u304d\u307e\u3059\u3002<br>transition,transform,opacity\u3092\u99c6\u4f7f\u3057\u3066\u52d5\u304d\u3092\u6301\u305f\u305b\u307e\u3059\u3002<br>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u4e0b\u306e\u53c2\u8003\u30ea\u30f3\u30af\u3067\u98db\u3093\u3060\u5148\u306e\u30b5\u30a4\u30c8\u306b\u30ec\u30d1\u30fc\u30c8\u30ea\u30fc\u304c\u3042\u308b\u306e\u3067\u898b\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.navbar-light .navbar-toggler {\n  border-color: rgba(0, 0, 0, 0);\n  outline: none;\n}\n\n.navbar-light .navbar-toggler-icon {\n  background-image: none;\n}\n\n.navbar-toggler-icon {\n  position: relative;\n  width: 40px;\n  height: 40px;\n  background: none;\n  appearance: none;\n  cursor: pointer;\n\n  &amp;,\n  span {\n    display: inline-block;\n    transition: all 0.4s;\n    box-sizing: border-box;\n  }\n\n  span {\n    position: absolute;\n    left: 5px;\n    width: 80%;\n    height: 2px;\n    background-color: rgba(165, 165, 165, 1);\n    border-radius: 1px;\n\n    &amp;:nth-of-type(1) {\n      top: 8px;\n    }\n    &amp;:nth-of-type(2) {\n      top: 20px;\n    }\n    &amp;:nth-of-type(3) {\n      top: 32px;\n    }\n  }\n}\n\n.navbar-toggler {\n  &amp;:active {\n    span.navbar-toggler-icon {\n      span {\n        &amp;:nth-of-type(1) {\n          transform: translateY(12px) rotate(-315deg);\n        }\n        &amp;:nth-of-type(2) {\n          opacity: 0;\n        }\n        &amp;:nth-of-type(3) {\n          transform: translateY(-12px) rotate(315deg);\n        }\n      }\n    }\n  }\n}\n<\/pre><\/div>\n\n\n<p>\u3053\u308c\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br>\u30fb\u30fb\u30fb\u3067\u3059\u304c\u3001\u3053\u306e\u307e\u307e\u3060\u3068\u30dc\u30bf\u30f3\u306b\u5bfe\u3057\u3066\u30af\u30ea\u30c3\u30af\u3057\u7d9a\u3051\u3066\u3044\u308b\u6642\u306b\u3057\u304b\u53cd\u5fdc\u3057\u307e\u305b\u3093\u3002<br>\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u304c\u5c55\u958b\u3055\u308c\u3066\u3082\u5143\u306e3\u672c\u7dda\u306b\u623b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br>\u306a\u306e\u3067\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u304c\u5c55\u958b\u3055\u308c\u305f\u6642\u306b\u3061\u3083\u3093\u3068\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u5909\u5f62\u5f8c\u306e\u30a2\u30a4\u30b3\u30f3\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u3066\u3042\u3052\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 id=\"outline__6_1\" class=\"wp-block-heading\">Bootstrap\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u3067\u306e\u5c55\u958b\u3092\u5236\u5fa1\u3057\u3066\u3044\u308b\u5834\u6240\u306f\u3069\u3053\u304b<\/h3>\n\n\n\n<p>bootstrap\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u306e\u958b\u9589\u306e\u5236\u5fa1\u306faria-expanded\u5c5e\u6027\u306etrue\/false\u3067\u5236\u5fa1\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u7b49\u3067\u52d5\u304d\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5c55\u958b\u524d\u3002aria-expanded\u304cfalse\u3068\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"846\" height=\"200\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-6.png\" alt=\"\" class=\"wp-image-1248\"\/><\/figure>\n\n\n\n<p>\u5c55\u958b\u5f8c\u3002aria-expanded\u304ctrue\u3068\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"820\" height=\"286\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-7.png\" alt=\"\" class=\"wp-image-1249\"\/><\/figure>\n\n\n\n<p>\u3088\u3063\u3066\u3001\u3053\u306earia-expanded\u5c5e\u6027\u306e\u72b6\u614b\u306b\u3088\u3063\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u5236\u5fa1\u3092\u884c\u3048\u3070\u3044\u3044\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u306e\u3067\u3001css\u3092\u4fee\u6b63\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.navbar-light .navbar-toggler {\n  border-color: rgba(0, 0, 0, 0);\n  outline: none;\n}\n\n.navbar-light .navbar-toggler-icon {\n  background-image: none;\n}\n\n.navbar-toggler-icon {\n  position: relative;\n  width: 40px;\n  height: 40px;\n  background: none;\n  appearance: none;\n  cursor: pointer;\n\n  &amp;,\n  span {\n    display: inline-block;\n    transition: all 0.4s;\n    box-sizing: border-box;\n  }\n\n  span {\n    position: absolute;\n    left: 5px;\n    width: 80%;\n    height: 2px;\n    background-color: rgba(165, 165, 165, 1);\n    border-radius: 1px;\n\n    &amp;:nth-of-type(1) {\n      top: 8px;\n    }\n    &amp;:nth-of-type(2) {\n      top: 20px;\n    }\n    &amp;:nth-of-type(3) {\n      top: 32px;\n    }\n  }\n}\n\n.navbar-toggler&#x5B;aria-expanded='true'] {\n  span.navbar-toggler-icon {\n    span {\n      &amp;:nth-of-type(1) {\n        transform: translateY(12px) rotate(-315deg);\n      }\n      &amp;:nth-of-type(2) {\n        opacity: 0;\n      }\n      &amp;:nth-of-type(3) {\n        transform: translateY(-12px) rotate(315deg);\n      }\n    }\n  }\n}\n<\/pre><\/div>\n\n\n<p>\u3053\u308c\u3067\u7121\u4e8bbootstrap\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 id=\"outline__7\" class=\"wp-block-heading\">\u53c2\u8003\u30ea\u30f3\u30af<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.nxworld.net\/12-css-hamburger-menu-active-effect.html\">CSS\u3067\u5b9f\u88c5\u3059\u308b\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u30af\u30ea\u30c3\u30af\u6642\u306e\u30a8\u30d5\u30a7\u30af\u30c8 10\uff0b<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/public-constructor.com\/hide-button-outline\/\">\u3010HTML\u30fbCSS\u3011CSS\u3067\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306e\u67a0\u7dda\u3092\u6d88\u3059\u65b9\u6cd5<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/on-ze.com\/archives\/2156\">HTML5\u306e\u72ec\u81ea\u30c7\u30fc\u30bf\u5c5e\u6027\u306bCSS\u3092\u52b9\u304b\u305b\u308b\u65b9\u6cd5\u3002<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bootstrap4\u306enavbar\u3067\u8a2d\u7f6e\u3067\u304d\u308b\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u4eca\u98a8\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u305f\u304f\u3066\u30ab [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1250,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[279],"tags":[282,280,281],"class_list":["post-1239","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bootstrap","tag-animation","tag-bootstrap","tag-navbar"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/1239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1239"}],"version-history":[{"count":4,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/1239\/revisions"}],"predecessor-version":[{"id":1328,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/1239\/revisions\/1328"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/media\/1250"}],"wp:attachment":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}