Skip to content

ayushmaninbox/parallax-effect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallax Banner with Smooth Scrolling and Bounce Effect

This project implements a responsive parallax scrolling banner using HTML, CSS, and JavaScript. The page features multiple background layers that move at different speeds, creating a parallax effect. Additionally, smooth scrolling behavior and a bounce effect at the end of the page are included.

Table of Contents

Features

  • Parallax Effect: Multiple layers with varying scroll speeds for a dynamic effect.
  • Smooth Scrolling: Smooth scrolling is implemented for a more user-friendly navigation experience.
  • Bounce Effect: The page adds a subtle bounce effect when the user scrolls to the bottom.
  • Responsive Design: Adapts to different screen sizes using media queries to adjust text and hide extra images on smaller screens.
  • Josefin Sans Font: Custom typography using Google Fonts.

Technologies Used

  • HTML5: Markup language for building the webpage structure.
  • CSS3: Styling, animations, and responsive design through media queries.
  • JavaScript: Used to handle the parallax effect, smooth scrolling, and bounce animation.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/ayushmaninbox/parallax-effect/
  2. Navigate to the project folder:

    cd parallax-banner
    
  3. Open the project in your preferred code editor to make any necessary changes to the files.

  4. To view the project, open the index.html file directly in your web browser:

    • On most systems, you can double-click the index.html file, or
    • Right-click the file and select "Open With" followed by your preferred browser.

Usage

  1. Open index.html in your web browser to view the parallax banner in action.
  2. Scroll the page to see the multiple background layers moving at different speeds, creating a dynamic parallax effect.
  3. When you reach the bottom of the page, a bounce effect will be triggered for a more interactive experience.
  4. Resize the window or open the page on various devices to observe the responsive design adjustments.

License

This project is licensed under the MIT License - see below for details:

MIT License

Copyright (c) 2024 ayushmaninbox

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.