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 1
1
import React from 'react' ;
2
2
3
3
import { makeStyles } from '@material-ui/core/styles' ;
4
+ import './index.css' ;
4
5
import {
5
6
Grid ,
6
7
Typography ,
@@ -35,7 +36,6 @@ const useStyles = makeStyles(theme => ({
35
36
gridList : {
36
37
flexWrap : 'nowrap' ,
37
38
width : '100%' ,
38
- // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS.
39
39
transform : 'translateZ(0)'
40
40
} ,
41
41
card : {
@@ -48,7 +48,6 @@ const useStyles = makeStyles(theme => ({
48
48
cardMedia : {
49
49
width : '100%' ,
50
50
height : 'auto'
51
- // paddingTop: "56.25%", // 16:9
52
51
} ,
53
52
cardContent : {
54
53
flexGrow : 1
@@ -138,12 +137,14 @@ export default function Recommendations({ recommendationsImages }) {
138
137
139
138
< Grid container spacing = { 4 } >
140
139
< GridList
140
+ id = "recommendation_grid"
141
141
className = { classes . gridList }
142
142
cols = { large ? 4 : medium ? 3.5 : small ? 2.7 : 1.4 }
143
143
>
144
144
{ recommendations . map ( ( recommendation , index ) => {
145
145
return (
146
146
< GridListTile
147
+ className = "recommendation_slide"
147
148
key = { index }
148
149
style = { {
149
150
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