My intention is to scale my background image when user's mouse enters by 1.5 but my attempts proves abortive. Here is my code:
import React from 'react';
import Slider from './index';
import horizontalCss from './css/horizontal.scss';
import content from './content';
import SourceView from './SourceView';
import './css/styles.scss';
function Autoplay() {
return (
<div>
<Slider classNames={horizontalCss} autoplay={3000}>
{content.map((item, index) => (
<div
key={index}
style={{ background: `url('${item.image}') no-repeat center center`,
'&:hover': {
background: 'white',
transform: 'scale(1.5)',
}, }}
>
<div className="center">
<div className="textWrapper">
<h2>{item.title}</h2>
</div>
</div>
</div>
))}
</Slider>
</div>
);
}
export default Autoplay;
What adjustment do I have to do to make this work