Skip to content

devhassan2001/Ham_Animation_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hamburger icon Animation 1

See the Animation => ham_1

How to use

Threee steps to use it

  1. Add this in the head tag
<link href="https://devhassan2001.github.io/Ham_Animation_1/ham_1.css " rel="stylesheet">
  1. Add this to the end of the body tag
<script src="https://devhassan2001.github.io/Ham_Animation_1/ham_1.js"></script>
  1. 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>

Default data

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)

Available sizes

(26x17)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published