This project demonstrates a Cover Flow effect implemented using Three.js. It displays album covers fetched from a local albums.json
file in a 3D carousel interface.
- Displays album covers in a 3D Cover Flow style.
- Loads album data dynamically from
albums.json
. - Uses Three.js for 3D rendering and GSAP for animations.
- Allows navigation through the albums using a range slider or mouse wheel.
- Includes reflections for the album covers.
- Ensure you have a local web server set up. (e.g., using Python's
http.server
, Node.js'sserve
, or a VS Code extension like Live Server). - Serve the project directory.
- Open
index.html
in your web browser via the local server address.
index.html
: The main HTML file that sets up the page structure and includes necessary scripts.style.css
: Contains the CSS styles for the page layout and slider.main.js
: The core JavaScript file using Three.js and GSAP to create the Cover Flow effect, load data, and handle interactions.albums.json
: A JSON file containing the data (title, artist, image URL) for the albums to be displayed.imgs/
: Directory intended for storing images (like the backgroundbg.png
). Album images are loaded directly from URLs specified inalbums.json
.
- Three.js: A 3D graphics library for JavaScript.
- GSAP (GreenSock Animation Platform): A JavaScript animation library used for smooth transitions.