Skip to content

Shaimaa01/skin-care-landing-page

Repository files navigation

Skin Care Landing Page

A responsive single-page application built with React and Vite, featuring a component-based architecture and a suite of animations powered by GSAP.

Project Screenshot


Live Demo   ·  


Key Features

GSAP Animation Suite:

  • Animated Loading Screen: Displays a GSAP-animated count from 0 to 100 before the main content loads.

  • Scroll-Triggered Reveals: All page sections animate into view on scroll using ScrollTrigger.

  • Text Animation: A word-by-word reveal animation is implemented on the hero paragraph using SplitText.

  • Interactive Slider: The product carousel features programmatic scrolling controlled by arrow buttons.

  • Stateful Accordion: The FAQ section is a fully functional accordion, managing state to ensure only one item is open at a time.

  • Centralized Data: All static data (FAQ, products, values) is managed in a single constants file for maintainability and scalability.

Tech Stack

  • Framework: React (with Vite)
  • Styling: Tailwind CSS v4
  • Animations: GSAP (GreenSock Animation Platform)
  • Deployment: Vercel

Technical Implementation Note

Custom Dotted Border

The unique dotted and dashed borders in the design could not be replicated with standard Tailwind classes.

To achieve this effect, I used the Dashed Border Generator website to create a custom SVG. This SVG was then applied as a background-image in CSS. By setting the SVG's stroke-dasharray to a zero-length dash and using stroke-linecap='round', the border appears as perfect dots. The generated SVG is stored as a reusable CSS variable, making it easy to apply and maintain throughout the project.

Running the Project Locally

  1. Clone the repository:
    git clone https://github.com/Shaimaa01/skin-care-landing-page.git
  2. Navigate to the project directory:
    cd skin-care-landing-page
  3. Install dependencies:
    npm install
  4. Start the development server:
    npm run dev

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published