Skip to content

sabbir-web-dev/Rotating-Navigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rotating-Navigation

To write the read.md file for your rotating navigation, you can follow these steps:

  1. Open a text editor or an integrated development environment (IDE) where you can create and edit files.

  2. Copy the JavaScript code you provided:

const open = document.getElementById("open");
const close = document.getElementById("close");
const container = document.querySelector(".container");

open.addEventListener("click", () => {
  container.classList.add("rotate");
});
close.addEventListener("click", () => {
  container.classList.remove("rotate");
});
  1. Paste the code into a new file and save it with the name index.js.

  2. Now, create a new file and write the markdown content for your read.md file. Here's a basic example:

# Rotating Navigation

This project implements a rotating navigation menu using HTML, CSS, and JavaScript.

## Features

- Clicking the "Open" button rotates the navigation menu into view.
- Clicking the "Close" button rotates the navigation menu out of view.
- Navigation items slide into view sequentially when opening the menu.
- Navigation items slide out of view sequentially when closing the menu.

## Technologies Used

- HTML
- CSS
- JavaScript

## How to Use

1. Clone the repository.
2. Open `index.html` in your web browser.
3. Click the "Open" button to see the rotating navigation menu in action.
4. Click the "Close" button to hide the navigation menu.

## Credits

- Author: Sabbir Hosen
- GitHub: [Sabbir Hosen](https://github.com/sabbir-web-dev)
  1. Save this content into a new file named read.md.

  2. Your rotating navigation project directory should now contain three files: index.html, index.js, and read.md.

  3. You can now commit these files to your version control system (e.g., Git) and share your project with others.