This project demonstrates a unique fading effect for a website. The website's opacity decreases over a user-defined period (in minutes), ultimately fading out completely. It also includes a countdown timer that visually displays the remaining time.
- Custom Fading Duration: Users can specify how many minutes the fading effect should last.
- Real-Time Countdown Timer: Displays the time remaining in
MM:SSformat. - Automatic Start Date: The fading process starts as soon as the user sets the duration.
- Interactive Design: Allows users to instantly see the effect.
- Users input the number of minutes for the fading effect.
- The opacity of the website decreases progressively until it becomes completely invisible.
- The countdown timer updates in real-time to show how much time is left.
- HTML5: Structure and layout of the webpage.
- CSS3: Styling for the website, including input elements and countdown timer.
- JavaScript (Vanilla): Logic for fading effect, countdown timer, and user interactivity.
-
Clone this repository:
git clone https://github.com/Fahd-O/Website_Self-Destruct_Mechanism.git
-
Navigate to the project directory:
cd Website_Self-Destruct_Mechanism -
Open
index.htmlin your favorite web browser to test the functionality.
fading-website/
├── index.html # Main HTML file
├── css/styles.css # Styling for the website
├── css/fadeOut.css # Styling for the fade out effect
├── images/ # Contains img used in the website
├── js/fadeOut.js # JavaScript functionality
├── js/script.js # JavaScript for the fade out effect
└── README.md # Project documentation- Open the website in your browser.
- Choose the number of minutes you want the fading effect to last.
- Click the Start Fade button to begin the effect.
- Watch as the page fades gradually while the countdown timer shows the remaining time.
- Modify the
maxTimevariable infadeOut.jsto set a different default duration. - Customize the countdown timer's appearance by editing the
.timer-displayclass instyles.css.
- As a demonstration project for learning JavaScript interactivity.
- Testing website expiration functionalities for unpaid services.
- Creating interactive user experiences with timed effects.
Developed by Abiola Fahad Ogunnaike.
This project is free to use.