This repository was archived by the owner on Mar 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22
33import { makeStyles } from '@material-ui/core/styles' ;
4+ import './index.css' ;
45import {
56 Grid ,
67 Typography ,
@@ -35,7 +36,6 @@ const useStyles = makeStyles(theme => ({
3536 gridList : {
3637 flexWrap : 'nowrap' ,
3738 width : '100%' ,
38- // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS.
3939 transform : 'translateZ(0)'
4040 } ,
4141 card : {
@@ -48,7 +48,6 @@ const useStyles = makeStyles(theme => ({
4848 cardMedia : {
4949 width : '100%' ,
5050 height : 'auto'
51- // paddingTop: "56.25%", // 16:9
5251 } ,
5352 cardContent : {
5453 flexGrow : 1
@@ -138,12 +137,14 @@ export default function Recommendations({ recommendationsImages }) {
138137
139138 < Grid container spacing = { 4 } >
140139 < GridList
140+ id = "recommendation_grid"
141141 className = { classes . gridList }
142142 cols = { large ? 4 : medium ? 3.5 : small ? 2.7 : 1.4 }
143143 >
144144 { recommendations . map ( ( recommendation , index ) => {
145145 return (
146146 < GridListTile
147+ className = "recommendation_slide"
147148 key = { index }
148149 style = { {
149150 margin : '20px' ,
Original file line number Diff line number Diff line change 1+ : root {
2+ scrollbar-color : # 000000 white !important ;
3+ scrollbar-width : thin !important ;
4+ }
5+ ::-webkit-scrollbar-track {
6+ border : 1px solid gray;
7+ background-color : # f5f5f5 ;
8+ border-radius : 10px ;
9+ }
10+ ::-webkit-scrollbar {
11+ width : 10px ;
12+ background-color : # f5f5f5 ;
13+ }
14+ ::-webkit-scrollbar-thumb {
15+ border-radius : 10px ;
16+ background-color : # 000000 ;
17+ animation : animate 6s linear infinite;
18+ }
19+ # recommendation_grid {
20+ position : relative;
21+ overflow : hidden;
22+ }
23+ .recommendation_slide {
24+ position : relative;
25+ left : 0 ;
26+ top : 0 ;
27+ height : 100% ;
28+ width : 250% ;
29+ animation : slideshow 100s linear infinite;
30+ }
31+ @keyframes slideshow {
32+ 0% { left : 0% ; }
33+ 50% { left : -150% ; }
34+ 100% { left : 0% ; }
35+ }
You can’t perform that action at this time.
0 commit comments