1 | import PropTypes from 'prop-types'
|
2 | import React from 'react'
|
3 | import styled from 'styled-components'
|
4 |
|
5 | import { Clothesline } from 'SRC'
|
6 |
|
7 | const ClotheslineAnimation = styled(({className}) => {
|
8 | return (
|
9 | <div className={className}>
|
10 | <Clothesline key={1} />
|
11 | <Clothesline key={2} />
|
12 | <Clothesline key={3} />
|
13 | </div>
|
14 | )
|
15 | })`
|
16 | position: relative;
|
17 | overflow: hidden;
|
18 | white-space: nowrap;
|
19 | ${Clothesline} {
|
20 | width: 100%;
|
21 | ${props => props => props.theme.breakpointsVerbose.aboveTablet`
|
22 | width: 50%;
|
23 | `}
|
24 | }
|
25 | `
|
26 |
|
27 | ClotheslineAnimation.propTypes = {
|
28 | className: PropTypes.string
|
29 | }
|
30 |
|
31 |
|
32 | export default ClotheslineAnimation
|