sticky side menu with Javascript

 





Github here

According to a plugin named jquery.ssMenu, I thought the sticky side menu should be concise and responsive for mobile.

Step1:
link the font awesome for the icons in front of each list.
and the demo css file

and jquery library at the bottom of body for Javascript 

Step2:
html

Menu is a list with <a> tag inside and icon embeded seperately.

Step3:
css


Linked the google font with @import
The menu is fixed at the left side of browser.
Class .open is the main classname manipulated in the Javascript part.



With some hovering motion, the position and the color with be changed.



Any change is animated with transition,more smoother.



The badge is the red reminder besides the icon.



More color themes version is easy to set with background color.



The browser in mobile is different layouts which is at the top fixed.

Step4:
JS
I deleted some part of original code which I feel like useless.

You can change the theme and add additional css code in script. 
Add class open when mouseenter or click.
example in demo







Popular posts from this blog

Fancyapps — easily build overlay windows with carousel

Meet Tippy.js: The Complete Tooltip Popover Plugin

Meet Mantine: A TS-Based Open-Source React Components Library