{"id":22499950,"url":"https://github.com/rajat2502/scrollable-carousel-react","last_synced_at":"2026-04-18T01:02:32.478Z","repository":{"id":48829301,"uuid":"383508183","full_name":"rajat2502/scrollable-carousel-react","owner":"rajat2502","description":"This is a basic carousel built using ReactJS. It fetches images from the Unsplash API and shows them in a carousel that is scrollable using both controls and touch. For gracefully loading images, it uses a placeholder image.","archived":false,"fork":false,"pushed_at":"2021-07-09T15:38:30.000Z","size":311,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-08T16:37:15.954Z","etag":null,"topics":["carousel-component","reactjs","unsplash"],"latest_commit_sha":null,"homepage":"https://scrollable-carousel-react.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajat2502.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-06T15:03:22.000Z","updated_at":"2021-07-09T15:38:10.000Z","dependencies_parsed_at":"2022-09-23T22:30:32.388Z","dependency_job_id":null,"html_url":"https://github.com/rajat2502/scrollable-carousel-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rajat2502/scrollable-carousel-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2Fscrollable-carousel-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2Fscrollable-carousel-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2Fscrollable-carousel-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2Fscrollable-carousel-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajat2502","download_url":"https://codeload.github.com/rajat2502/scrollable-carousel-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2Fscrollable-carousel-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31952208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carousel-component","reactjs","unsplash"],"created_at":"2024-12-06T22:17:31.090Z","updated_at":"2026-04-18T01:02:32.457Z","avatar_url":"https://github.com/rajat2502.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrollable Carousel React\n\nThis is a basic carousel built using ReactJS. It fetches images from the Unsplash API and shows them in a carousel that is scrollable using both controls and touch. For gracefully loading images, it uses a placeholder image.\n\n**See Hosted Version [here](https://scrollable-carousel-react.netlify.app/)**\n\n### Features\n\n- Carousel is scrollable through **controls** as well as using **touch**.\n- Shows **placeholder images** until the actual image is completely loaded in the background.\n- Fetch random images as well as images related to a keyword.\n- Ability to download the image.\n\n### Technologies Used\n\n- ReactJS (Frontend library)\n- Tailwindcss (CSS Framework)\n- Unsplash API\n- Netlify.com (For Hosting)\n\n### Optimizations Performed:\n\n- **Purging unused CSS**: TailwindCSS comes with a lot of CSS and styles due to which a good amount of classes always remains unused. Using purging reduced the Gzipped CSS size from **450KB** to just **2KB** that reduced the page-load time by 0.6s.\n- **Font-Display swap**: The project uses a custom font, which initially blocked the page loading time for some time, used the `font-display: swap` property to load the system font initially, and once the page is loaded then only request the Custom font.\n- Used SVGs in place of PNGs/JPEGs.\n- Rewritten reusable code and avoided any blocking code.\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003eHow to setup locally?\u003c/strong\u003e\u003c/summary\u003e\n \n  \n- Fork and clone the repo using\n```\n$ git clone https://github.com/rajat2502/scrollable-carousel-react\n$ cd scrollable-carousel-react\n```\n- Get a new API key from [https://unsplash.com/documentation](https://unsplash.com/documentation) and replace it with `REACT_APP_UNSPLASH_KEY` in `.env.example`.\n\n- Rename the file `.env.example` to `.env`\n\n- Install node dependencies using\n```\n$ yarn add\n```\n- Run Server at localhost using\n```\n$ yarn serve\n```\n  \n\u003c/details\u003e\n\n### Screenshot(s)\n\n![mediamodifier_image](https://user-images.githubusercontent.com/42200276/124787244-fa5caa80-df65-11eb-8b8d-01a99d3436cb.jpeg)\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"350\" height=\"662\" src=\"https://user-images.githubusercontent.com/42200276/124788575-1745ad80-df67-11eb-9e8d-53fa5a63f1aa.png\" /\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajat2502%2Fscrollable-carousel-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajat2502%2Fscrollable-carousel-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajat2502%2Fscrollable-carousel-react/lists"}