Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
development:css:bootstrap:animated_hamburger_menu [2020/03/17 13:21] kalenpw created |
development:css:bootstrap:animated_hamburger_menu [2020/03/17 13:31] (current) kalenpw |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Animated Hamburger Menu Toggle ====== | ====== Animated Hamburger Menu Toggle ====== | ||
| + | Animation to have the 3 line hamburger menu turn into an x | ||
| + | |||
| + | ---- | ||
| + | ===== HTML ===== | ||
| + | Replace the normal bootstrap hamburger menu in the navbar with the following | ||
| + | <code html> | ||
| + | <button class=" | ||
| + | | ||
| + | | ||
| + | > | ||
| + | <span class=" | ||
| + | <span class=" | ||
| + | <span class=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | ===== CSS ===== | ||
| + | And add the following CSS | ||
| <code css> | <code css> | ||
| .navbar-toggler { | .navbar-toggler { | ||
| Line 39: | Line 58: | ||
| </ | </ | ||
| - | <code html> | + | ---- |
| - | < | + | ===== Example ===== |
| - | data-target="# | + | {{: |
| - | aria-label=" | + | |
| - | <span class=" | + | |
| - | <span class=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | ||