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
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
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 ,
@@ -138,12 +139,14 @@ export default function Recommendations({ recommendationsImages }) {
138
139
139
140
< Grid container spacing = { 4 } >
140
141
< GridList
142
+ id = "recommendation_grid"
141
143
className = { classes . gridList }
142
144
cols = { large ? 4 : medium ? 3.5 : small ? 2.7 : 1.4 }
143
145
>
144
146
{ recommendations . map ( ( recommendation , index ) => {
145
147
return (
146
148
< GridListTile
149
+ className = "recommendation_slide"
147
150
key = { index }
148
151
style = { {
149
152
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