Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit 185fa0a

Browse files
authored
scrollbar css changed (#120)
* animation in testimonials section * testimonials to and fro animation added
1 parent d22cc28 commit 185fa0a

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

src/views/pages/common/Recommendations.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22

33
import { makeStyles } from '@material-ui/core/styles';
4+
import './index.css';
45
import {
56
Grid,
67
Typography,
@@ -138,12 +139,14 @@ export default function Recommendations({ recommendationsImages }) {
138139

139140
<Grid container spacing={4}>
140141
<GridList
142+
id="recommendation_grid"
141143
className={classes.gridList}
142144
cols={large ? 4 : medium ? 3.5 : small ? 2.7 : 1.4}
143145
>
144146
{recommendations.map((recommendation, index) => {
145147
return (
146148
<GridListTile
149+
className="recommendation_slide"
147150
key={index}
148151
style={{
149152
margin: '20px',

src/views/pages/common/index.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
}

0 commit comments

Comments
 (0)