Skip to content

This project creates a social media selector menu using HTML, CSS, and JavaScript. Clicking the button shows a list of social media platforms and selecting one updates the button text.

Notifications You must be signed in to change notification settings

paribhandarkar/social-media-selector-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Social Media Selector Menu

This is a simple project that creates a social media selector menu using HTML, CSS, and JavaScript. The menu is designed with a flexbox layout and features a button-like element with a chevron-down icon and a hidden list of social media platforms represented by their respective icons and names. When the menu is clicked, the list of social media platforms slides down, and when a platform is selected, its name replaces the default "Social Media" text on the button.

The JavaScript code handles the menu toggle and platform selection events by toggling CSS classes to show/hide the platform list and update the button text. The Font Awesome library is used to provide the social media icons. The background gradient and other CSS properties give the menu a pleasing aesthetic.

Demo

You can try out the application by visiting this link.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Getting Started

To get started with this project, clone the repository and open the index.html file in your preferred web browser.

Challenges I Faced

To replace the default "Social Media" text on the button with the name of the selected platform, it was necessary to add an event listener to each social media list item. The event listener updated the button text with the inner HTML of the selected list item. Properly selecting and updating the correct HTML element with the selected platform name required careful attention to detail.

image

About

This project creates a social media selector menu using HTML, CSS, and JavaScript. Clicking the button shows a list of social media platforms and selecting one updates the button text.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published