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

Commit

Permalink
scrollbar css changed (#120)
Browse files Browse the repository at this point in the history
* animation in testimonials section

* testimonials to and fro animation added
  • Loading branch information
ArunTeltia authored Oct 18, 2020
1 parent d22cc28 commit 185fa0a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/pages/common/Recommendations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';

import { makeStyles } from '@material-ui/core/styles';
import './index.css';
import {
Grid,
Typography,
Expand Down Expand Up @@ -138,12 +139,14 @@ export default function Recommendations({ recommendationsImages }) {

<Grid container spacing={4}>
<GridList
id="recommendation_grid"
className={classes.gridList}
cols={large ? 4 : medium ? 3.5 : small ? 2.7 : 1.4}
>
{recommendations.map((recommendation, index) => {
return (
<GridListTile
className="recommendation_slide"
key={index}
style={{
margin: '20px',
Expand Down
35 changes: 35 additions & 0 deletions src/views/pages/common/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
:root{
scrollbar-color:#000000 white !important;
scrollbar-width:thin !important;
}
::-webkit-scrollbar-track {
border: 1px solid gray;
background-color: #f5f5f5;
border-radius: 10px;
}
::-webkit-scrollbar {
width: 10px;
background-color: #f5f5f5;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #000000;
animation: animate 6s linear infinite;
}
#recommendation_grid{
position:relative;
overflow: hidden;
}
.recommendation_slide{
position: relative;
left: 0;
top: 0;
height: 100%;
width: 250%;
animation: slideshow 100s linear infinite;
}
@keyframes slideshow {
0% { left: 0%; }
50% { left: -150%; }
100% { left: -0%; }
}

0 comments on commit 185fa0a

Please sign in to comment.