malaman / react-image-zoom

React component for desktop browsers for image zoom on mouse hover
http://malaman.github.io/react-image-zoom/example/index.html
MIT License
188 stars 29 forks source link

How to use class in images? #18

Open KoushikMVN opened 3 years ago

KoushikMVN commented 3 years ago

I am useing ReactImageZoom i want to use onLoad in image for loading state , can i do that ?

<ReactImageZoom {...{ width: 400, zoomWidth: 505, // scale:1.8, offset: { "vertical": 0, "horizontal": 20 }, zoomLensStyle: 'opacity: 0.4; background-color: white; width: 150px; height: 130px', zoomStyle: 'opacity: 2; z-index: 2; border-radius: 5px;', img: productImage, }} />

anburocky3 commented 3 months ago

Did you find any way to use className?