UNPKG

660 BJavaScriptView Raw
1import PropTypes from 'prop-types'
2import React from 'react'
3import styled from 'styled-components'
4
5import { Clothesline } from 'SRC'
6
7const 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})`
16position: relative;
17overflow: hidden;
18white-space: nowrap;
19 ${Clothesline} {
20 width: 100%;
21 ${props => props => props.theme.breakpointsVerbose.aboveTablet`
22 width: 50%;
23 `}
24 }
25`
26
27ClotheslineAnimation.propTypes = {
28 className: PropTypes.string
29}
30
31/** @component */
32export default ClotheslineAnimation