add slider autoplay
This commit is contained in:
parent
8ded7379cb
commit
11b0e1fce9
|
@ -5,13 +5,15 @@ import { Filters } from "../../API/Filters";
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
// ras customization
|
|
||||||
import './ras.css';
|
|
||||||
import ApartamentService from "../../API/ApartamentService";
|
import ApartamentService from "../../API/ApartamentService";
|
||||||
import { HashLoader } from 'react-spinners';
|
import { HashLoader } from 'react-spinners';
|
||||||
|
|
||||||
import AwesomeSlider from 'react-awesome-slider';
|
import AwesomeSlider from 'react-awesome-slider';
|
||||||
|
import withAutoplay from 'react-awesome-slider/dist/autoplay';
|
||||||
import 'react-awesome-slider/dist/styles.css';
|
import 'react-awesome-slider/dist/styles.css';
|
||||||
|
// ras customization
|
||||||
|
import './ras.css';
|
||||||
|
const AutoplaySlider = withAutoplay(AwesomeSlider);
|
||||||
|
|
||||||
import constants from "../../constants";
|
import constants from "../../constants";
|
||||||
|
|
||||||
|
@ -376,10 +378,10 @@ export default class IndexPage extends React.Component {
|
||||||
return (
|
return (
|
||||||
<IndexPageRoot>
|
<IndexPageRoot>
|
||||||
<SliderContainer>
|
<SliderContainer>
|
||||||
<AwesomeSlider bullets={false}>
|
<AutoplaySlider play cancelOnInteraction={false} interval={8000} bullets={false}>
|
||||||
<a href='https://vvsu.ithub.ru/dod' data-src='/images/OpenDoorDay.jpg' />
|
<a href='https://vvsu.ithub.ru/dod' data-src='/images/OpenDoorDay.jpg' />
|
||||||
<div data-src='/images/Business.jpg' />
|
<div data-src='/images/Business.jpg' />
|
||||||
</AwesomeSlider>
|
</AutoplaySlider>
|
||||||
</SliderContainer>
|
</SliderContainer>
|
||||||
|
|
||||||
<Title>
|
<Title>
|
||||||
|
|
Loading…
Reference in New Issue