Skip to content

Instantly share code, notes, and snippets.

@divienginesupport
Last active July 26, 2022 06:50
Show Gist options
  • Save divienginesupport/73970f18e423892a318c388eb1c72934 to your computer and use it in GitHub Desktop.
Save divienginesupport/73970f18e423892a318c388eb1c72934 to your computer and use it in GitHub Desktop.
Summer Sale Hamburger SVG Animation CSS
/* Divi Engine SVG hamburger animation CSS for Divi Mobile */
/* Get Divi Mobile at https://diviengine.com/product/divi-mobile */
.divi-mobile-menu .line {
fill: none !important; /* overwrite Divi Mobile setting to add color to the path */
stroke: black; /* Change this color for the icon */
stroke-width: 6; /* Increase the line thickness */
transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.divi-mobile-menu .line1 {
stroke-dasharray: 60 207;
stroke-width: 6; /* Increase the line thickness */
}
.divi-mobile-menu .line2 {
stroke-dasharray: 60 60;
stroke-width: 6; /* Increase the line thickness */
}
.divi-mobile-menu .line3 {
stroke-dasharray: 60 207;
stroke-width: 6; /* Increase the line thickness */
}
.show-menu .divi-mobile-menu .line1 {
stroke-dasharray: 90 207;
stroke-dashoffset: -134;
stroke-width: 6; /* Increase the line thickness */
}
.show-menu .divi-mobile-menu .line2 {
stroke-dasharray: 1 60;
stroke-dashoffset: -30;
stroke-width: 6; /* Increase the line thickness */
}
.show-menu .divi-mobile-menu .line3 {
stroke-dasharray: 90 207;
stroke-dashoffset: -134;
stroke-width: 6; /* Increase the line thickness */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment