See the Animation => ham_1
Threee steps to use it
- Add this in the head tag
<link href="https://devhassan2001.github.io/Ham_Animation_1/ham_1.css " rel="stylesheet">
- Add this to the end of the body tag
<script src="https://devhassan2001.github.io/Ham_Animation_1/ham_1.js"></script>
- Add this to the place you want to set the hamburger icon
<div
id="ham_1"
data-bars_thickness="3.7"
data-speed="0.5"
data-middle_bar_color="#000000"
data-top_down_bars_color="#000000"
></div>
in the third step, the data attributes represent the default data for the animation
Data Name | Description | Defualt value |
---|---|---|
data-bars_thickness | set the thickness of the bars | 3.7 (means 3.7px) |
data-speed | set the time of the animation | 0.5 (means 0.5s) |
data-middle_bar_color | set the middle bar color | #000000 (must be a hex value) |
data-top_down_bars_color | set the top and down bars color | #000000 (must be a hex value) |
(26x17)